Simplify description field.

This commit is contained in:
James Cole 2021-02-22 19:38:21 +01:00
parent 97d12cd77a
commit e1826cdfb2
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
2 changed files with 5 additions and 2 deletions

View File

@ -33,7 +33,7 @@
:custom-fields="customFields"
:submitted-transaction="submittedTransaction"
v-on:uploaded-attachments="uploadedAttachment($event)"
v-on:set-description="storeDescription(index, $event)"
v-on:set-description="storeField($event)"
v-on:set-marker-location="storeLocation(index, $event)"
v-on:set-source-account-id="storeAccountValue(index, 'source', 'id', $event)"
v-on:set-source-account-name="storeAccountValue(index, 'source', 'name', $event)"
@ -408,6 +408,9 @@ export default {
this.calculateTransactionType(index);
}
},
storeField: function(payload) {
this.updateField(payload);
},
storeDescription: function (index, value) {
this.updateField({field: 'description', index: index, value: value});
},

View File

@ -86,7 +86,7 @@ export default {
},
watch: {
description: function (value) {
this.$emit('set-description', value);
this.$emit('set-description', {field: 'description', index: this.index, value: value});
//
}
},