fix: update toggle on update:active
This commit is contained in:
parent
ed0d9ee431
commit
abe8c598fc
|
@ -33,6 +33,7 @@
|
|||
|
||||
<b-menu-item :expanded="activeGroup.lists"
|
||||
:active="activeGroup.lists"
|
||||
v-on:update:active="(state) => toggleGroup('lists', state)"
|
||||
icon="format-list-bulleted-square" label="Lists">
|
||||
<b-menu-item :to="{name: 'lists'}" tag="router-link"
|
||||
:active="activeItem.lists"
|
||||
|
@ -45,6 +46,7 @@
|
|||
|
||||
<b-menu-item :expanded="activeGroup.subscribers"
|
||||
:active="activeGroup.subscribers"
|
||||
v-on:update:active="(state) => toggleGroup('subscribers', state)"
|
||||
icon="account-multiple" label="Subscribers">
|
||||
<b-menu-item :to="{name: 'subscribers'}" tag="router-link"
|
||||
:active="activeItem.subscribers"
|
||||
|
@ -57,6 +59,7 @@
|
|||
|
||||
<b-menu-item :expanded="activeGroup.campaigns"
|
||||
:active="activeGroup.campaigns"
|
||||
v-on:update:active="(state) => toggleGroup('campaigns', state)"
|
||||
icon="rocket-launch-outline" label="Campaigns">
|
||||
<b-menu-item :to="{name: 'campaigns'}" tag="router-link"
|
||||
:active="activeItem.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 ...');
|
||||
|
|
Loading…
Reference in New Issue