|
|
@@ -59,6 +59,14 @@ export default {
|
|
|
.catch((error) => { this.errors = JSON.parse(error.response.request.response).errors; });
|
|
|
}
|
|
|
},
|
|
|
+ // The props are obtained in parent components via axios,
|
|
|
+ // so the values may change after the initial render, these
|
|
|
+ // Watchers fill in our initial values when the values of the
|
|
|
+ // props change. As a side effect if they are updated while we
|
|
|
+ // are editing they will change right underneath us, not sure
|
|
|
+ // probably will implement a notice when they change during edit
|
|
|
+ // with the option to view changes or override them or something
|
|
|
+ // that.
|
|
|
watch: {
|
|
|
populateWith: function (value) {
|
|
|
this.data = JSON.parse(JSON.stringify(this.populateWith))
|