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">
|
<script setup lang="ts">
|
||||||
import { computed } from 'vue';
|
|
||||||
import { useRoute } from 'vue-router';
|
|
||||||
|
|
||||||
const route = useRoute();
|
|
||||||
|
|
||||||
const menuItems = [
|
const menuItems = [
|
||||||
{ label: 'Dashboard', to: '/', icon: 'dashboard' },
|
{ label: 'Dashboard', to: '/', icon: 'dashboard' },
|
||||||
{ label: 'Players', to: '/players', icon: 'groups' },
|
{ label: 'Players', to: '/players', icon: 'groups' },
|
||||||
@@ -12,22 +7,11 @@ const menuItems = [
|
|||||||
{ label: 'About', to: '/about', icon: 'info' },
|
{ 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;
|
const logoUrl = new URL('./image.png', import.meta.url).href;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QLayout view="hHh LpR fFf">
|
<QLayout view="lHh LpR fFf">
|
||||||
<QHeader elevated>
|
|
||||||
<QToolbar>
|
|
||||||
<QToolbarTitle>{{ activeLabel }}</QToolbarTitle>
|
|
||||||
</QToolbar>
|
|
||||||
</QHeader>
|
|
||||||
|
|
||||||
<QDrawer
|
<QDrawer
|
||||||
show-if-above
|
show-if-above
|
||||||
side="left"
|
side="left"
|
||||||
|
|||||||
Reference in New Issue
Block a user