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 ...'); diff --git a/frontend/vue.config.js b/frontend/vue.config.js index 0fc3d38..a339bb9 100644 --- a/frontend/vue.config.js +++ b/frontend/vue.config.js @@ -8,7 +8,7 @@ module.exports = { // and the URI for assets are tightly coupled. This is handled in the Go app // by using stuffbin aliases. assetsDir: 'frontend', - + // Move the index.html file from dist/index.html to dist/frontend/index.html indexPath: './frontend/index.html',