mirror of
https://github.com/Pandipipas/scoreko-dev.git
synced 2026-06-06 03:32:06 +00:00
Remove top header bar from dashboard views (#34)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user