Update edit app member form so the save button becomes active on change

This commit is contained in:
leigh-mil
2019-09-17 13:38:33 -04:00
parent e341a73dd1
commit 6de02e874b
4 changed files with 22 additions and 19 deletions

View File

@@ -6,6 +6,7 @@ export default {
props: {
name: String,
initialChecked: Boolean,
optional: Boolean,
},
data: function() {
@@ -18,7 +19,7 @@ export default {
emitEvent('field-mount', this, {
optional: this.optional,
name: this.name,
valid: this.isChecked,
valid: this.optional || this.isChecked,
})
},
@@ -27,7 +28,7 @@ export default {
emitEvent('field-change', this, {
value: e.target.checked,
name: this.name,
valid: this.isChecked,
valid: this.optional || this.isChecked,
})
},
},