diff --git a/frontend/src/views/AppLayout.vue b/frontend/src/views/AppLayout.vue index dd247a7..05a0021 100644 --- a/frontend/src/views/AppLayout.vue +++ b/frontend/src/views/AppLayout.vue @@ -25,7 +25,7 @@ - Shopfloor Dashboard + Shopfloor Dashboard TV Slideshow Parts Kiosk @@ -124,7 +124,12 @@ const authStore = useAuthStore() // report for a plugin that was never staged. const stagedRoutePaths = new Set(router.getRoutes().map(r => r.path)) const hasRoute = (path) => stagedRoutePaths.has(path) -const showDisplays = ['/shopfloor', '/tv', '/parts-kiosk'].some(hasRoute) +// Shopfloor Dashboard is a core view but runs entirely on the notifications +// plugin (notificationsApi.getShopfloor + the calendar); without it the display +// is empty, so gate the link on the notifications plugin being in this build. +const showShopfloor = hasRoute('/shopfloor') + && (hasRoute('/notifications') || hasRoute('/calendar')) +const showDisplays = showShopfloor || hasRoute('/tv') || hasRoute('/parts-kiosk') const routeViewKey = computed(() => route.path.startsWith('/settings') ? '/settings' : route.path )