This commit is contained in:
2019-12-16 23:23:40 +00:00
parent 4005075539
commit 9340564e72
2 changed files with 73 additions and 28 deletions

View File

@@ -3,35 +3,73 @@
<gznotify ref="gznotify"></gznotify> <gznotify ref="gznotify"></gznotify>
<gzconfirm ref="gzconfirm"></gzconfirm> <gzconfirm ref="gzconfirm"></gzconfirm>
<!-- <gztest ref="gztest"></gztest> --> <!-- <gztest ref="gztest"></gztest> -->
<v-navigation-drawer v-if="isAuthenticated" v-model="drawer" app> <v-navigation-drawer
v-if="isAuthenticated"
v-model="drawer"
app
width="300"
>
<v-card class="mx-auto" width="300">
<v-list dense> <v-list dense>
<template v-for="item in navItems"> <template v-for="item in navItems">
<!-- TOP LEVEL can be holders or actions --> <!-- TOP LEVEL can be holders or actions -->
<template v-if="!item.route">
<!-- TOP LEVEL HOLDER --> <!-- TOP LEVEL HOLDER -->
<template v-if="!item.route">
<v-list-group <v-list-group
:prepend-icon="'fa-' + item.icon" :prepend-icon="'fa-' + item.icon"
value="true" value="true"
:key="item.key" :key="item.key"
> >
<template v-slot:activator> <template v-slot:activator>
<!--group activator -->
<v-list-item-title>{{ item.title }}</v-list-item-title> <v-list-item-title>{{ item.title }}</v-list-item-title>
</template> </template>
<!-- TOP LEVEL HOLDER SUBITEMS -->
<template v-for="subitem in item.navItems"> <template v-for="subitem in item.navItems">
<template v-if="!subitem.route"> <template v-if="!subitem.route">
<!-- SECOND LEVEL HOLDER CONTAINS ONLY ACTIONS --> <!-- SECOND LEVEL HOLDER -->
{{ subitem.title }} <v-list-group
no-action
sub-group
value="true"
:key="subitem.key"
>
<!-- Second level activator -->
<template v-slot:activator>
<v-list-item-content>
<v-list-item-title>{{
subitem.title
}}</v-list-item-title>
</v-list-item-content>
</template>
<v-list-item
v-for="subsub in subitem.navItems"
:key="subsub.key"
:to="subsub.route"
link
>
<v-list-item-title
v-text="subsub.title"
></v-list-item-title>
<v-list-item-icon>
<v-icon>{{ "fa-" + subsub.icon }}</v-icon>
</v-list-item-icon>
</v-list-item>
</v-list-group>
</template> </template>
<template v-else> <template v-else>
<!-- SECOND LEVEL ACTION --> <!-- SECOND LEVEL ACTION -->
</template> </template>
</template> </template>
</v-list-group> </v-list-group>
<!-- END OF TOP LEVEL HOLDER -->
</template> </template>
<template v-else>
<!-- TOP LEVEL ACTION --> <!-- TOP LEVEL ACTION -->
</template> <template v-else> </template>
</template> </template>
<!-- <v-list-item <!-- <v-list-item
@@ -47,6 +85,7 @@
</v-list-item-content> </v-list-item-content>
</v-list-item> --> </v-list-item> -->
</v-list> </v-list>
</v-card>
</v-navigation-drawer> </v-navigation-drawer>
<v-app-bar <v-app-bar
v-if="isAuthenticated" v-if="isAuthenticated"

View File

@@ -48,8 +48,14 @@ export default {
coreKeys: [ coreKeys: [
//main nav options //main nav options
"Home", "Home",
"DashboardDashboard",
"Schedule",
"Locale",
"SetLoginPassword",
"NotifySubscriptionList",
"UserPreferences",
"Service", "Service",
"Dispatch", //"Dispatch",
"Inventory", "Inventory",
"Accounting", "Accounting",
"Administration", "Administration",