@afeefa/vue-app 0.0.142 → 0.0.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.143
|
package/package.json
CHANGED
@@ -64,7 +64,6 @@ import { DialogEvent } from '@a-vue/events'
|
|
64
64
|
})
|
65
65
|
export default class EditModal extends Vue {
|
66
66
|
show_ = false
|
67
|
-
ignoreChangesOnClose_ = false
|
68
67
|
|
69
68
|
created () {
|
70
69
|
if (!this.model && !this.createModelToEdit) {
|
@@ -109,7 +108,7 @@ export default class EditModal extends Vue {
|
|
109
108
|
|
110
109
|
async beforeClose () {
|
111
110
|
// run only if show_ is true to prevent double checks with a-modal
|
112
|
-
if (this.show_ && this.$refs.form.changed
|
111
|
+
if (this.show_ && this.$refs.form.changed) {
|
113
112
|
const result = await this.$events.dispatch(new DialogEvent(DialogEvent.SHOW, {
|
114
113
|
title: 'Änderungen verwerfen?',
|
115
114
|
message: 'Im Formular sind nicht gespeicherte Änderungen. Sollen diese verworfen werden?',
|
@@ -136,9 +135,7 @@ export default class EditModal extends Vue {
|
|
136
135
|
* hook to allow to leave a just created (saved) model
|
137
136
|
*/
|
138
137
|
ignoreChangesOnClose () {
|
139
|
-
|
140
|
-
console.info('TODO switch form to forceUnchanged')
|
141
|
-
this.ignoreChangesOnClose_ = true
|
138
|
+
this.$refs.form.forceUnchanged()
|
142
139
|
}
|
143
140
|
}
|
144
141
|
</script>
|
package/src-admin/styles.scss
CHANGED