This commit is contained in:
2019-12-16 21:20:08 +00:00
parent 5da5746fb6
commit 43aed606ef
2 changed files with 58 additions and 3 deletions

View File

@@ -5,6 +5,7 @@
<!-- <gztest ref="gztest"></gztest> -->
<v-navigation-drawer v-if="isAuthenticated" v-model="drawer" app>
<v-list dense>
<v-list-item
v-for="item in navItems"
:key="item.route"
@@ -17,6 +18,7 @@
<v-list-item-title>{{ item.title }}</v-list-item-title>
</v-list-item-content>
</v-list-item>
</v-list>
</v-navigation-drawer>
<v-app-bar

View File

@@ -1,10 +1,11 @@
/* Xeslint-disable */
function addNavItem(title, icon, route) {
function addNavItem(title, icon, route, navItems) {
window.$gz.store.commit("addNavItem", {
title,
icon,
route
route,
navItems
});
}
@@ -20,7 +21,59 @@ export default function initialize() {
.then(function putFetchedNavItemsInStore() {
//put nav items into store
//Everyone has a home
addNavItem(window.$gz.locale.get("Home"), "home", "/");
/*
- "HOME" (Current user specific stuff only)
- "OVERVIEW" (old "dashboard" not sure of the LT name but it's the old dashboard) of service if a tech or has access to tech related shit like current dashboard
- A customer had thoughts on the dashboard:
- case 1974: shootnsharp@thesoileaus.com "In my opinion, the dashboard would be much more functional and valuable if I could determine how many work orders show on the screen and possibly even what statuses (or be able to sort by status, priority, etc.) The At a Glance stats of Service Rate Quantity is helpful but would be even more relevant if it showed what was approaching due date, overdue, waiting on parts, pending parts requests, items on loan stats, preventative maintenance work orders approaching and overdue. Having the capability to customize the Dashboard is key because each Service business has its own metrics that are most important to its business."
- SCHEDULE (User's own schedule only if applicable, all users can have a schedule so it goes here)
- MEMOS (for user)
- SETTINGS
- User locale settings
- Language
- Time zone
- date time numeric formats (NOT CURRENCY, THATS GLOBAL AND FIXED)
- Any other user specific settings that the User can control (and sb able to control more than in v7 if it doesn't affect anyone else)
- Change login?
- notification subscriptions
- Notifciation deliveries
*/
//create array of sub items under the home menu item
var sub = [];
//DASHBOARD
sub.push({
title: window.$gz.locale.get("DashboardDashboard"),
icon: "tachometer-alt",
route: "/dashboard"
});
//SCHEDULE (personal)
sub.push({
title: window.$gz.locale.get("Schedule"),
icon: "calendar-alt",
route: "/schedule/me"
});
//MEMOS
sub.push({
title: window.$gz.locale.get("Schedule"),
icon: "inbox",
route: "/memo"
});
//3rd level items under preferences
var subSub = [];
//Preferences (personal)
sub.push({
title: window.$gz.locale.get("Preferences"),
icon: "tachometer-alt",
route: "/dashboard"
});
addNavItem(window.$gz.locale.get("Home"), "home", "/", sub);
//NOTE: If a user has read full record or better then they should have access to that area