Simplify description field.

This commit is contained in:
James Cole
2021-02-22 19:38:21 +01:00
parent 97d12cd77a
commit e1826cdfb2
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});
},