This commit is contained in:
2019-12-27 20:24:17 +00:00
parent 4016df08bb
commit 49c29dfec6
2 changed files with 13 additions and 82 deletions

View File

@@ -49,10 +49,7 @@ SHELL / NAV / MENUS / LAYOUT
TODO: After testing on phone found following issues:
- Service menu:
- Realized Workorders quotes etc are pushed down into a sub menu only because of the templates yet they will be super commonly accessed
- Maybe put all templates in their own submenu and keep the workorders quotes etc as top level under Service
- Nav panel cramped, ugly; still has plenty of vertical space on the phone my smallest form factor for testing but it looks cramped so test without the DENSE option
- Dashboard graphics are not scaled down, test in small window and play with it to shrink it down
- Dashboard opens on login but when open menu HOME is not expanded even though the dahsboard is current view, so whatever section sent to after login menu should open that section as well

View File

@@ -23,7 +23,6 @@ export default function initialize() {
//put nav items into store
var key = 0;
var sub = [];
var subSub = [];
//****************** HOME
@@ -63,10 +62,8 @@ export default function initialize() {
key: key++
});
//3rd level items under preferences
//LOCALE
subSub.push({
//USER LOCALE
sub.push({
title: window.$gz.locale.get("Locale"),
icon: "language",
route: "/home-locale",
@@ -74,30 +71,21 @@ export default function initialize() {
});
//SET LOGIN
subSub.push({
sub.push({
title: window.$gz.locale.get("SetLoginPassword"),
icon: "key",
route: "/home-password",
key: key++
});
//NOTIFICATION SUBSCRIPTIONS
subSub.push({
//USER NOTIFICATION SUBSCRIPTIONS
sub.push({
title: window.$gz.locale.get("NotifySubscriptionList"),
icon: "bullhorn",
route: "/home-notify-subscriptions",
key: key++
});
//USER PREFERENCES (personal)
sub.push({
title: window.$gz.locale.get("UserPreferences"),
icon: "user-cog",
route: undefined,
navItems: subSub,
key: key++
});
//HOME
addNavItem(
window.$gz.locale.get("Home"),
@@ -108,8 +96,7 @@ export default function initialize() {
);
//****************** CUSTOMERS
//clear sublevel arrays
subSub = [];
//clear sublevel array
sub = [];
//CUSTOMERS subitem
@@ -138,8 +125,7 @@ export default function initialize() {
);
//****************** SERVICE
//clear sublevel arrays
subSub = [];
//clear sublevel array
sub = [];
//SCHEDULE (combined)
@@ -150,7 +136,6 @@ export default function initialize() {
key: key++
});
//WORKORDERS LIST (was service workorders)
sub.push({
title: window.$gz.locale.get("WorkorderServiceList"),
@@ -161,6 +146,7 @@ export default function initialize() {
// //WORKORDER TEMPLATES LIST
//this will be an item inside the workorders NEW menu or grid or wherever but it's not top level worthy
//there used to be an array for 3rd level shit but that's whack yo! ;)
// subSub.push({
// title: window.$gz.locale.get("WorkorderServiceTemplate"),
// icon: "stamp",
@@ -168,16 +154,6 @@ export default function initialize() {
// key: key++
// });
// //WORKORDERS GROUP
// sub.push({
// title: window.$gz.locale.get("WorkorderServiceList"),
// icon: "tools",
// route: undefined,
// navItems: subSub,
// key: key++
// });
//QUOTE LIST
sub.push({
title: window.$gz.locale.get("WorkorderQuoteList"),
@@ -186,25 +162,6 @@ export default function initialize() {
key: key++
});
// //QUOTE TEMPLATES LIST
// subSub.push({
// title: window.$gz.locale.get("WorkorderQuoteTemplate"),
// icon: "stamp",
// route: "/svc-quote-templates",
// key: key++
// });
// //QUOTE GROUP
// sub.push({
// title: window.$gz.locale.get("WorkorderQuoteList"),
// icon: "edit",
// route: undefined,
// navItems: subSub,
// key: key++
// });
//PM GROUP SUBITEMS
//subSub = [];
//PM LIST
sub.push({
title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"),
@@ -213,25 +170,6 @@ export default function initialize() {
key: key++
});
// //PM TEMPLATES LIST
// subSub.push({
// title: window.$gz.locale.get(
// "WorkorderPreventiveMaintenanceTemplate"
// ),
// icon: "stamp",
// route: "/svc-pm-templates",
// key: key++
// });
// //PM GROUP
// sub.push({
// title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"),
// icon: "business-time",
// route: undefined,
// navItems: subSub,
// key: key++
// });
//UNITS subitem
sub.push({
title: window.$gz.locale.get("UnitList"),
@@ -282,8 +220,7 @@ export default function initialize() {
);
//****************** INVENTORY
//clear sublevel arrays
subSub = [];
//clear sublevel array
sub = [];
//PARTS (part list)
@@ -357,8 +294,7 @@ export default function initialize() {
);
//****************** ACCOUNTING
//clear sublevel arrays
subSub = [];
sub = [];
//FAKE subitem as is still TBD
@@ -379,8 +315,7 @@ export default function initialize() {
);
//****************** ADMINISTRATION
//clear sublevel arrays
subSub = [];
//clear sublevel array
sub = [];
// GLOBAL SETTINGS
@@ -459,8 +394,7 @@ export default function initialize() {
);
//****************** OPERATIONS
//clear sublevel arrays
subSub = [];
//clear sublevel array
sub = [];
// ARCHIVE