[web-src] Fix navbar links not working with burger menu visible

This commit is contained in:
chme
2019-07-06 15:21:29 +02:00
parent 5fff68bb13
commit 03c50ba81e
3 changed files with 51 additions and 22 deletions

View File

@@ -248,6 +248,8 @@ export const router = new VueRouter({
router.beforeEach((to, from, next) => {
const burgerMenuVisible = store.state.show_burger_menu
store.commit(types.SHOW_BURGER_MENU, false)
if (burgerMenuVisible) {
store.commit(types.SHOW_BURGER_MENU, false)
}
next(!burgerMenuVisible)
})