Rebuild frontend, first working edit form (no feedback)

This commit is contained in:
James Cole
2021-03-21 18:48:47 +01:00
parent e0d0f49bfd
commit 1088a43866
16 changed files with 2243 additions and 851 deletions

View File

@@ -43,7 +43,6 @@ export default {
return {
notes: this.value,
availableFields: this.customFields,
emitEvent: true
}
},
computed: {
@@ -56,17 +55,13 @@ export default {
},
watch: {
value: function (value) {
this.emitEvent = false;
this.notes = value;
},
customFields: function (value) {
this.availableFields = value;
},
notes: function (value) {
if (true === this.emitEvent) {
this.$emit('set-field', {field: 'notes', index: this.index, value: value});
}
this.emitEvent = true;
this.$emit('set-field', {field: 'notes', index: this.index, value: value});
}
}
}