This commit is contained in:
2019-12-17 18:59:41 +00:00
parent 1855e37b0a
commit 93fa6dcd26
3 changed files with 25 additions and 13 deletions

View File

@@ -52,7 +52,9 @@
:to="subsub.route" :to="subsub.route"
> >
<v-list-item-action> <v-list-item-action>
<v-icon>{{ "fa-" + subsub.icon }}</v-icon> <v-icon v-if="subsub.icon">{{
"fa-" + subsub.icon
}}</v-icon>
</v-list-item-action> </v-list-item-action>
<v-list-item-title <v-list-item-title
v-text="subsub.title" v-text="subsub.title"
@@ -67,7 +69,9 @@
<div class="pl-3" :key="subitem.key"> <div class="pl-3" :key="subitem.key">
<v-list-item :to="subitem.route"> <v-list-item :to="subitem.route">
<v-list-item-action> <v-list-item-action>
<v-icon>{{ "fa-" + subitem.icon }}</v-icon> <v-icon v-if="subitem.icon">{{
"fa-" + subitem.icon
}}</v-icon>
</v-list-item-action> </v-list-item-action>
<v-list-item-content> <v-list-item-content>
<v-list-item-title>{{ <v-list-item-title>{{
@@ -86,7 +90,7 @@
<template v-else> <template v-else>
<div class="pl-3" :key="item.key"> <div class="pl-3" :key="item.key">
<v-list-item :to="item.route"> <v-list-item :to="item.route">
<v-list-item-action> <v-list-item-action v-if="item.icon">
<v-icon>{{ "fa-" + item.icon }}</v-icon> <v-icon>{{ "fa-" + item.icon }}</v-icon>
</v-list-item-action> </v-list-item-action>
<v-list-item-content> <v-list-item-content>

View File

@@ -119,7 +119,7 @@ export default function initialize() {
key: key++ key: key++
}); });
//CUSTOMER (TOP) // ** CUSTOMER (TOP)
addNavItem( addNavItem(
window.$gz.locale.get("ClientList"), window.$gz.locale.get("ClientList"),
"address-book", "address-book",
@@ -233,16 +233,23 @@ export default function initialize() {
key: key++ key: key++
}); });
//UNITS subitem //UNITS subitem
// possible icons: robot, microchip, splotch, fan sub.push({
sub.push({ title: window.$gz.locale.get("UnitList"),
title: window.$gz.locale.get("UnitList"), icon: "fan",
icon: "fan", route: "/units",
route: "/units", key: key++
key: key++ });
});
//Service (TOP GROUP) //UNIT MODELS subitem
sub.push({
title: window.$gz.locale.get("UnitModels"),
icon: undefined,
route: "/unitmodels",
key: key++
});
//**** Service (TOP GROUP)
addNavItem( addNavItem(
window.$gz.locale.get("Service"), window.$gz.locale.get("Service"),
"toolbox", "toolbox",

View File

@@ -65,6 +65,7 @@ export default {
"WorkorderPreventiveMaintenanceList", "WorkorderPreventiveMaintenanceList",
"WorkorderPreventiveMaintenanceTemplate", "WorkorderPreventiveMaintenanceTemplate",
"UnitList", "UnitList",
"UnitModels",
//"Dispatch", //"Dispatch",
"Inventory", "Inventory",
"Accounting", "Accounting",