Add canSave to the form mixin to toggle whether or not the Next button is disabled
This commit is contained in:
@@ -44,6 +44,18 @@ export default {
|
||||
},
|
||||
},
|
||||
|
||||
computed: {
|
||||
canSave: function() {
|
||||
if (!this.invalid) {
|
||||
return true
|
||||
} else if (this.changed && !this.invalid) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
data: function() {
|
||||
return {
|
||||
changed: this.hasChanges,
|
||||
|
Reference in New Issue
Block a user