mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 18:44:16 +00:00
Simplify description field.
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
:custom-fields="customFields"
|
:custom-fields="customFields"
|
||||||
:submitted-transaction="submittedTransaction"
|
:submitted-transaction="submittedTransaction"
|
||||||
v-on:uploaded-attachments="uploadedAttachment($event)"
|
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-marker-location="storeLocation(index, $event)"
|
||||||
v-on:set-source-account-id="storeAccountValue(index, 'source', 'id', $event)"
|
v-on:set-source-account-id="storeAccountValue(index, 'source', 'id', $event)"
|
||||||
v-on:set-source-account-name="storeAccountValue(index, 'source', 'name', $event)"
|
v-on:set-source-account-name="storeAccountValue(index, 'source', 'name', $event)"
|
||||||
@@ -408,6 +408,9 @@ export default {
|
|||||||
this.calculateTransactionType(index);
|
this.calculateTransactionType(index);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
storeField: function(payload) {
|
||||||
|
this.updateField(payload);
|
||||||
|
},
|
||||||
storeDescription: function (index, value) {
|
storeDescription: function (index, value) {
|
||||||
this.updateField({field: 'description', index: index, value: value});
|
this.updateField({field: 'description', index: index, value: value});
|
||||||
},
|
},
|
||||||
|
@@ -86,7 +86,7 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
description: function (value) {
|
description: function (value) {
|
||||||
this.$emit('set-description', value);
|
this.$emit('set-description', {field: 'description', index: this.index, value: value});
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user