@afeefa/vue-app 0.0.211 → 0.0.212

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.211
1
+ 0.0.212
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.211",
3
+ "version": "0.0.212",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  </v-btn>
41
41
 
42
42
  <edit-form-buttons
43
- :changed="changed"
43
+ :changed="changed || forceChanged"
44
44
  :forceActive="forceActive"
45
45
  :valid="validFromOutside && valid"
46
46
  angular
@@ -62,7 +62,7 @@ import { Component, Vue, Watch } from '@a-vue'
62
62
  import { DialogEvent } from '@a-vue/events'
63
63
 
64
64
  @Component({
65
- props: ['model', 'createModelToEdit', 'show', {reset: true, valid: true, forceActive: false}]
65
+ props: ['model', 'createModelToEdit', 'show', {reset: true, valid: true, forceChanged: false, forceActive: false}]
66
66
  })
67
67
  export default class EditModal extends Vue {
68
68
  show_ = false
@@ -114,7 +114,7 @@ export default class EditModal extends Vue {
114
114
 
115
115
  async beforeClose () {
116
116
  // run only if show_ is true to prevent double checks with a-modal
117
- if (this.show_ && (this.$refs.form.changed)) {
117
+ if (this.show_ && (this.$refs.form.changed || this.forceChanged)) {
118
118
  const result = await this.$events.dispatch(new DialogEvent(DialogEvent.SHOW, {
119
119
  title: 'Änderungen verwerfen?',
120
120
  message: 'Im Formular sind nicht gespeicherte Änderungen. Sollen diese verworfen werden?',