Better event.

This commit is contained in:
James Cole
2021-02-23 06:27:07 +01:00
parent 13cd9312f8
commit fbbf002451
2 changed files with 2 additions and 2 deletions

View File

@@ -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)"

View File

@@ -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;