mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-20 10:11:21 +00:00
Update frontend.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user