[web] Simplify logic of displaying menus

This commit is contained in:
Alain Nussbaumer
2025-03-28 00:00:46 +01:00
parent 0aedfe1ad4
commit a4e09b27f4
2 changed files with 8 additions and 49 deletions

View File

@@ -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)
})