Update frontend.

This commit is contained in:
James Cole
2021-02-25 06:27:43 +01:00
parent 6bd6b1eb95
commit 9aa743b31b
47 changed files with 586 additions and 475 deletions

View File

@@ -42,7 +42,8 @@ export default {
data() {
return {
notes: this.value,
availableFields: this.customFields
availableFields: this.customFields,
emitEvent: true
}
},
computed: {
@@ -54,11 +55,18 @@ export default {
}
},
watch: {
value: function (value) {
this.emitEvent = false;
this.notes = value;
},
customFields: function (value) {
this.availableFields = value;
},
notes: function (value) {
this.$emit('set-field', {field: 'notes', index: this.index, value: value});
if (true === this.emitEvent) {
this.$emit('set-field', {field: 'notes', index: this.index, value: value});
}
this.emitEvent = true;
}
}
}