Merge stores and handle fetching from router

This commit is contained in:
2022-01-29 23:26:57 +00:00
parent 6f7aa28d22
commit e8dbb54086
6 changed files with 111 additions and 152 deletions

View File

@ -1,13 +1,5 @@
<script>
export default {
mounted() {
this.$store.dispatch("setCurrentAccount", {budgetid: this.budgetid, accountid: this.accountid})
},
watch: {
accountid () {
this.$store.dispatch("setCurrentAccount", {budgetid: this.budgetid, accountid: this.accountid})
}
},
props: ["budgetid", "accountid"]
}
</script>
@ -21,9 +13,6 @@ export default {
<table>
<tr v-for="transaction in $store.getters.Transactions" class="{{transaction.Date.After now ? 'future' : ''}}">
<td style="width: 90px;">{{transaction.Date.substring(0, 10)}}</td>
<!--<td>
{{transaction.Account}}
</td>-->
<td style="max-width: 150px;">
{{transaction.Payee}}
</td>