mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-29 05:19:05 -05:00
[web] Simplify logic of displaying menus
This commit is contained in:
@@ -39,7 +39,6 @@ import PageSettingsArtwork from '@/pages/PageSettingsArtwork.vue'
|
||||
import PageSettingsOnlineServices from '@/pages/PageSettingsOnlineServices.vue'
|
||||
import PageSettingsRemotesOutputs from '@/pages/PageSettingsRemotesOutputs.vue'
|
||||
import PageSettingsWebinterface from '@/pages/PageSettingsWebinterface.vue'
|
||||
import { useUIStore } from '@/stores/ui'
|
||||
|
||||
const TOP_WITH_TABS = 100
|
||||
|
||||
@@ -267,18 +266,3 @@ export const router = createRouter({
|
||||
return { left: 0, top: 0 }
|
||||
}
|
||||
})
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
const uiStore = useUIStore()
|
||||
if (uiStore.showBurgerMenu) {
|
||||
uiStore.showBurgerMenu = false
|
||||
next(false)
|
||||
return
|
||||
}
|
||||
if (uiStore.showPlayerMenu) {
|
||||
uiStore.showPlayerMenu = false
|
||||
next(false)
|
||||
return
|
||||
}
|
||||
next(true)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user