[web-src] Restyling of navbars and now playing page

This commit is contained in:
chme
2020-04-18 06:57:55 +02:00
parent 1d24622c99
commit b298fc1170
14 changed files with 567 additions and 270 deletions

View File

@@ -275,9 +275,15 @@ export const router = new VueRouter({
})
router.beforeEach((to, from, next) => {
const burgerMenuVisible = store.state.show_burger_menu
if (burgerMenuVisible) {
if (store.state.show_burger_menu) {
store.commit(types.SHOW_BURGER_MENU, false)
next(false)
return
}
next(!burgerMenuVisible)
if (store.state.show_player_menu) {
store.commit(types.SHOW_PLAYER_MENU, false)
next(false)
return
}
next(true)
})