Show edited officer form on error

This commit is contained in:
Patrick Smith
2019-01-31 14:03:15 -05:00
parent 6fe9229f89
commit 41feb9e74f
4 changed files with 18 additions and 6 deletions

View File

@@ -13,6 +13,10 @@ export default {
},
props: {
hasChanges: {
type: Boolean,
default: () => false,
},
hasErrors: {
type: Boolean,
default: () => false,
@@ -21,7 +25,7 @@ export default {
data: function() {
return {
editing: this.hasErrors,
editing: this.hasErrors || this.hasChanges,
}
},