From 6dcf7da861fccd3c8ba4d8bd518edd5a170e49d0 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Tue, 25 Jan 2022 20:06:26 +0000 Subject: [PATCH] Implement watch for accounts as well --- web/src/pages/Account.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/pages/Account.vue b/web/src/pages/Account.vue index c10aa1f..b9239d0 100644 --- a/web/src/pages/Account.vue +++ b/web/src/pages/Account.vue @@ -3,6 +3,11 @@ 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"] }