Navigation Tweaks
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user