Navigation Tweaks

This commit is contained in:
2024-05-18 08:49:56 -04:00
parent 97481a5d2e
commit d6339815aa
6 changed files with 129 additions and 87 deletions

View File

@@ -1,12 +1,12 @@
<template>
<q-page padding>
<q-item v-for="link in navlinks" :key="link.label">
<q-item v-for="link in navlinks" :key="link.name">
<q-btn
:icon="link.icon"
:color="link.color"
color="primary"
size="1.25em"
:to="link.to"
:label="link.label"
:label="link.name"
rounded
class="full-width"
align="left"
@@ -16,24 +16,9 @@
</template>
<script setup lang="ts">
const navlinks = [
{
icon: 'more_time',
to: '/schedule/book',
label: 'Create a Reservation',
color: 'primary',
},
{
icon: 'calendar_month',
to: '/schedule/view',
label: 'View Schedule',
color: 'primary',
},
{
icon: 'edit_calendar',
to: '/schedule/manage',
label: 'Manage Calendar',
color: 'accent',
},
];
import { enabledLinks } from 'src/router/navlinks';
const navlinks = enabledLinks.find(
(link) => link.name === 'Schedule'
)?.sublinks;
</script>