Merge branch 'master' of github.com:knadh/listmonk
This commit is contained in:
commit
26390e9994
|
@ -42,7 +42,7 @@ This one-click [Heroku deploy button](https://github.com/bumi/listmonk-heroku) p
|
||||||
|
|
||||||
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/bumi/listmonk-heroku)
|
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/bumi/listmonk-heroku)
|
||||||
|
|
||||||
Please note that [configuration options](https://listmonk.app/docs/configuration) must be set using [environment configruation variables](https://devcenter.heroku.com/articles/config-vars).
|
Please note that [configuration options](https://listmonk.app/docs/configuration) must be set using [environment configuration variables](https://devcenter.heroku.com/articles/config-vars).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
</b-menu-item><!-- dashboard -->
|
</b-menu-item><!-- dashboard -->
|
||||||
|
|
||||||
<b-menu-item :expanded="activeGroup.lists"
|
<b-menu-item :expanded="activeGroup.lists"
|
||||||
|
:active="activeGroup.lists"
|
||||||
|
v-on:update:active="(state) => toggleGroup('lists', state)"
|
||||||
icon="format-list-bulleted-square" label="Lists">
|
icon="format-list-bulleted-square" label="Lists">
|
||||||
<b-menu-item :to="{name: 'lists'}" tag="router-link"
|
<b-menu-item :to="{name: 'lists'}" tag="router-link"
|
||||||
:active="activeItem.lists"
|
:active="activeItem.lists"
|
||||||
|
@ -43,6 +45,8 @@
|
||||||
</b-menu-item><!-- lists -->
|
</b-menu-item><!-- lists -->
|
||||||
|
|
||||||
<b-menu-item :expanded="activeGroup.subscribers"
|
<b-menu-item :expanded="activeGroup.subscribers"
|
||||||
|
:active="activeGroup.subscribers"
|
||||||
|
v-on:update:active="(state) => toggleGroup('subscribers', state)"
|
||||||
icon="account-multiple" label="Subscribers">
|
icon="account-multiple" label="Subscribers">
|
||||||
<b-menu-item :to="{name: 'subscribers'}" tag="router-link"
|
<b-menu-item :to="{name: 'subscribers'}" tag="router-link"
|
||||||
:active="activeItem.subscribers"
|
:active="activeItem.subscribers"
|
||||||
|
@ -54,6 +58,8 @@
|
||||||
</b-menu-item><!-- subscribers -->
|
</b-menu-item><!-- subscribers -->
|
||||||
|
|
||||||
<b-menu-item :expanded="activeGroup.campaigns"
|
<b-menu-item :expanded="activeGroup.campaigns"
|
||||||
|
:active="activeGroup.campaigns"
|
||||||
|
v-on:update:active="(state) => toggleGroup('campaigns', state)"
|
||||||
icon="rocket-launch-outline" label="Campaigns">
|
icon="rocket-launch-outline" label="Campaigns">
|
||||||
<b-menu-item :to="{name: 'campaigns'}" tag="router-link"
|
<b-menu-item :to="{name: 'campaigns'}" tag="router-link"
|
||||||
:active="activeItem.campaigns"
|
:active="activeItem.campaigns"
|
||||||
|
@ -138,11 +144,18 @@ export default Vue.extend({
|
||||||
this.activeItem = { [to.name]: true };
|
this.activeItem = { [to.name]: true };
|
||||||
if (to.meta.group) {
|
if (to.meta.group) {
|
||||||
this.activeGroup = { [to.meta.group]: true };
|
this.activeGroup = { [to.meta.group]: true };
|
||||||
|
} else {
|
||||||
|
// Reset activeGroup to collapse menu items on navigating
|
||||||
|
// to non group items from sidebar
|
||||||
|
this.activeGroup = {};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
toggleGroup(group, state) {
|
||||||
|
this.activeGroup = state ? { [group]: true } : {};
|
||||||
|
},
|
||||||
reloadApp() {
|
reloadApp() {
|
||||||
this.$api.reloadApp().then(() => {
|
this.$api.reloadApp().then(() => {
|
||||||
this.$utils.toast('Reloading app ...');
|
this.$utils.toast('Reloading app ...');
|
||||||
|
|
Loading…
Reference in New Issue