From abe8c598fcbeab2fd0695cc262f8bc2a241e02b6 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 25 Aug 2020 19:16:33 +0530 Subject: [PATCH] fix: update toggle on update:active --- frontend/src/App.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 406308d..18a08d2 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -33,6 +33,7 @@ + :active="activeGroup.campaigns" + v-on:update:active="(state) => toggleGroup('campaigns', state)" + icon="rocket-launch-outline" label="Campaigns"> @@ -150,6 +153,9 @@ export default Vue.extend({ }, methods: { + toggleGroup(group, state) { + this.activeGroup = state ? { [group]: true } : {}; + }, reloadApp() { this.$api.reloadApp().then(() => { this.$utils.toast('Reloading app ...');