Remove top header bar from dashboard views (#34)

This commit is contained in:
Pandipipas
2026-02-10 13:10:47 +01:00
committed by GitHub
parent f9dfa686ee
commit ef10dae2ed
+1 -17
View File
@@ -1,9 +1,4 @@
<script setup lang="ts">
import { computed } from 'vue';
import { useRoute } from 'vue-router';
const route = useRoute();
const menuItems = [
{ label: 'Dashboard', to: '/', icon: 'dashboard' },
{ label: 'Players', to: '/players', icon: 'groups' },
@@ -12,22 +7,11 @@ const menuItems = [
{ label: 'About', to: '/about', icon: 'info' },
];
const activeLabel = computed(() => {
const match = menuItems.find((item) => item.to === route.path);
return match?.label ?? 'Dashboard';
});
const logoUrl = new URL('./image.png', import.meta.url).href;
</script>
<template>
<QLayout view="hHh LpR fFf">
<QHeader elevated>
<QToolbar>
<QToolbarTitle>{{ activeLabel }}</QToolbarTitle>
</QToolbar>
</QHeader>
<QLayout view="lHh LpR fFf">
<QDrawer
show-if-above
side="left"