2023-05-11 06:03:22 +02:00
|
|
|
<script setup>
|
|
|
|
import { useDisplay } from "vuetify/lib/framework.mjs";
|
|
|
|
import { ref } from "vue";
|
2023-12-12 16:17:21 +01:00
|
|
|
import { navigateTo, useRoute } from "#app";
|
|
|
|
|
|
|
|
const route = useRoute();
|
2023-05-11 06:03:22 +02:00
|
|
|
|
|
|
|
const { mobile } = useDisplay();
|
|
|
|
const navOpen = ref(!mobile.value);
|
2023-12-12 16:17:21 +01:00
|
|
|
const navSelected = ref([route.path]);
|
2023-05-11 06:03:22 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<VAppBar v-if="mobile" order="5">
|
|
|
|
<VAppBarNavIcon @click.end="navOpen = !navOpen" />
|
|
|
|
<VToolbarTitle>Database Project</VToolbarTitle>
|
|
|
|
</VAppBar>
|
|
|
|
<VNavigationDrawer v-model="navOpen" :temporary="mobile">
|
2023-12-12 16:17:21 +01:00
|
|
|
<VList v-model:selected="navSelected" density="compact" nav>
|
2023-05-11 06:03:22 +02:00
|
|
|
<VListItem prepend-icon="mdi-login" title="Login" value="/login" @click="navigateTo('/login')" />
|
2023-05-24 09:40:45 +02:00
|
|
|
<VListItem prepend-icon="mdi-account" title="Clients" value="/clients" @click="navigateTo('/clients')" />
|
|
|
|
<VDivider />
|
2023-05-11 06:03:22 +02:00
|
|
|
</VList>
|
|
|
|
</VNavigationDrawer>
|
|
|
|
</template>
|