@afeefa/vue-app 0.0.171 → 0.0.172

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.171
1
+ 0.0.172
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.171",
3
+ "version": "0.0.172",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  name="form"
23
23
  :modelToEdit="modelToEdit"
24
24
  :changed="changed"
25
- :valid="valid"
25
+ :valid="validFromOutside && valid"
26
26
  />
27
27
 
28
28
  <slot name="after-form-fields" />
@@ -41,7 +41,7 @@
41
41
 
42
42
  <edit-form-buttons
43
43
  :changed="changed"
44
- :valid="valid"
44
+ :valid="validFromOutside && valid"
45
45
  angular
46
46
  :has="{reset: reset && !!modelToEdit.id}"
47
47
  @save="$emit('save', modelToEdit, ignoreChangesOnClose, close)"
@@ -61,7 +61,7 @@ import { Component, Vue, Watch } from '@a-vue'
61
61
  import { DialogEvent } from '@a-vue/events'
62
62
 
63
63
  @Component({
64
- props: ['model', 'createModelToEdit', 'show', {reset: true}]
64
+ props: ['model', 'createModelToEdit', 'show', {reset: true, valid: true}]
65
65
  })
66
66
  export default class EditModal extends Vue {
67
67
  show_ = false
@@ -103,6 +103,10 @@ export default class EditModal extends Vue {
103
103
  }
104
104
  }
105
105
 
106
+ get validFromOutside () {
107
+ return this.valid
108
+ }
109
+
106
110
  open () {
107
111
  this.show_ = true
108
112
  }