Better event.

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

View File

@ -43,7 +43,7 @@
v-on:set-date="storeDate($event)"
v-on:set-time="storeTime($event)"
v-on:set-custom-date="storeField($event)"
v-on:set-budget="storeBudget(index, $event)"
v-on:set-budget="storeField($event)"
v-on:set-category="storeCategory(index, $event)"
v-on:set-bill="storeBill(index, $event)"
v-on:set-tags="storeTags(index, $event)"

View File

@ -88,7 +88,7 @@ export default {
},
watch: {
budget: function (value) {
this.$emit('set-budget', value);
this.$emit('set-budget', {field: 'budget_id', index: this.index, value: value});
}
},
}