Better event.

This commit is contained in:
James Cole 2021-02-23 06:28:12 +01:00
parent fbbf002451
commit 978c56b16b
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@
v-on:switch-accounts="switchAccounts($event)"
v-on:set-amount="storeAmount(index, $event)"
v-on:set-foreign-currency-id="storeField($event)"
v-on:set-foreign-amount="storeForeignAmount(index, $event)"
v-on:set-foreign-amount="storeField($event)"
v-on:set-date="storeDate($event)"
v-on:set-time="storeTime($event)"
v-on:set-custom-date="storeCustomDate(index, $event)"

View File

@ -59,7 +59,7 @@ export default {
},
watch: {
amount: function(value) {
this.$emit('set-foreign-amount', value);
this.$emit('set-foreign-amount', {field: 'foreign_amount', index: this.index, value: value});
}
},
computed: {