This commit is contained in:
@@ -3,38 +3,76 @@
|
|||||||
<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-list dense>
|
v-if="isAuthenticated"
|
||||||
<template v-for="item in navItems">
|
v-model="drawer"
|
||||||
<!-- TOP LEVEL can be holders or actions -->
|
app
|
||||||
<template v-if="!item.route">
|
width="300"
|
||||||
|
>
|
||||||
|
<v-card class="mx-auto" width="300">
|
||||||
|
<v-list dense>
|
||||||
|
<template v-for="item in navItems">
|
||||||
|
<!-- TOP LEVEL can be holders or actions -->
|
||||||
|
|
||||||
<!-- TOP LEVEL HOLDER -->
|
<!-- TOP LEVEL HOLDER -->
|
||||||
<v-list-group
|
<template v-if="!item.route">
|
||||||
:prepend-icon="'fa-' + item.icon"
|
<v-list-group
|
||||||
value="true"
|
:prepend-icon="'fa-' + item.icon"
|
||||||
:key="item.key"
|
value="true"
|
||||||
>
|
:key="item.key"
|
||||||
<template v-slot:activator>
|
>
|
||||||
<v-list-item-title>{{ item.title }}</v-list-item-title>
|
<template v-slot:activator>
|
||||||
</template>
|
<!--group activator -->
|
||||||
<template v-for="subitem in item.navItems">
|
<v-list-item-title>{{ item.title }}</v-list-item-title>
|
||||||
<template v-if="!subitem.route">
|
|
||||||
<!-- SECOND LEVEL HOLDER CONTAINS ONLY ACTIONS -->
|
|
||||||
{{ subitem.title }}
|
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<!-- TOP LEVEL HOLDER SUBITEMS -->
|
||||||
<!-- SECOND LEVEL ACTION -->
|
|
||||||
</template>
|
<template v-for="subitem in item.navItems">
|
||||||
</template>
|
<template v-if="!subitem.route">
|
||||||
</v-list-group>
|
<!-- SECOND LEVEL HOLDER -->
|
||||||
</template>
|
<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 v-else>
|
||||||
|
<!-- SECOND LEVEL ACTION -->
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</v-list-group>
|
||||||
|
<!-- END OF TOP LEVEL HOLDER -->
|
||||||
|
</template>
|
||||||
|
|
||||||
<template v-else>
|
|
||||||
<!-- TOP LEVEL ACTION -->
|
<!-- TOP LEVEL ACTION -->
|
||||||
|
<template v-else> </template>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
|
||||||
|
|
||||||
<!-- <v-list-item
|
<!-- <v-list-item
|
||||||
v-for="item in navItems"
|
v-for="item in navItems"
|
||||||
:key="item.route"
|
:key="item.route"
|
||||||
:to="item.route"
|
:to="item.route"
|
||||||
@@ -46,7 +84,8 @@
|
|||||||
<v-list-item-title>{{ item.title }}</v-list-item-title>
|
<v-list-item-title>{{ item.title }}</v-list-item-title>
|
||||||
</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"
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user