Merge stores and handle fetching from router
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user