This commit is contained in:
James Cole
2021-03-22 06:45:13 +01:00
parent 7f48a1b6ee
commit abb0f3d2be
15 changed files with 836 additions and 2098 deletions

View File

@@ -43,6 +43,7 @@ export default {
return {
notes: this.value,
availableFields: this.customFields,
emitEvent: true
}
},
computed: {
@@ -55,13 +56,17 @@ 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;
}
}
}