Implement watch for accounts as well

This commit is contained in:
Jan Bader 2022-01-25 20:06:26 +00:00
parent 4f2b3b7b22
commit 6dcf7da861

View File

@ -3,6 +3,11 @@ export default {
mounted() { mounted() {
this.$store.dispatch("setCurrentAccount", {budgetid: this.budgetid, accountid: this.accountid}) 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"] props: ["budgetid", "accountid"]
} }
</script> </script>