From 1a0dfa0e45362a198377f35be64fecc44fd2b57e Mon Sep 17 00:00:00 2001 From: elweyn Date: Wed, 18 Jan 2023 12:18:30 +0100 Subject: [PATCH] Add a watch on gdt prop and when changed to true loads the gdt datas. --- frontend/src/pages/Transactions.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/Transactions.vue b/frontend/src/pages/Transactions.vue index 40d883886..50e71f1ae 100644 --- a/frontend/src/pages/Transactions.vue +++ b/frontend/src/pages/Transactions.vue @@ -79,7 +79,7 @@ export default { this.$emit('update-transactions', pagination) }, }, - created() { + mounted() { if (this.gdt) { this.updateGdt() } @@ -90,6 +90,11 @@ export default { this.updateGdt() } }, + gdt() { + if (this.gdt) { + this.updateGdt() + } + }, }, }