From fbbf00245142e593554bc4ffa74d481070e5a190 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 23 Feb 2021 06:27:07 +0100 Subject: [PATCH] Better event. --- frontend/src/components/transactions/Create.vue | 2 +- .../src/components/transactions/TransactionForeignCurrency.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/transactions/Create.vue b/frontend/src/components/transactions/Create.vue index 10a5caf589..1fae2d4238 100644 --- a/frontend/src/components/transactions/Create.vue +++ b/frontend/src/components/transactions/Create.vue @@ -38,7 +38,7 @@ v-on:set-account="storeAccountValue($event)" v-on:switch-accounts="switchAccounts($event)" v-on:set-amount="storeAmount(index, $event)" - v-on:set-foreign-currency-id="storeForeignCurrencyId(index, $event)" + v-on:set-foreign-currency-id="storeField($event)" v-on:set-foreign-amount="storeForeignAmount(index, $event)" v-on:set-date="storeDate($event)" v-on:set-time="storeTime($event)" diff --git a/frontend/src/components/transactions/TransactionForeignCurrency.vue b/frontend/src/components/transactions/TransactionForeignCurrency.vue index ec73abf3ba..3f4aca0258 100644 --- a/frontend/src/components/transactions/TransactionForeignCurrency.vue +++ b/frontend/src/components/transactions/TransactionForeignCurrency.vue @@ -58,7 +58,7 @@ export default { this.dstCurrencyId = value; }, selectedCurrency: function(value) { - this.$emit('set-foreign-currency-id', value); + this.$emit('set-foreign-currency-id',{field: 'foreign_currency_id', index: this.index, value: value}); }, transactionType: function (value) { this.lockedCurrency = 0;