This commit is contained in:
@@ -155,7 +155,7 @@ TODO: IMPLEMENT and stub out entire nav layout, don't hae to open actual form, c
|
|||||||
- Not going with the fancy modular recomposable UI and I know v7 style will work
|
- Not going with the fancy modular recomposable UI and I know v7 style will work
|
||||||
- See the todo somewhere down below regarding the shell in case anything I forgot
|
- See the todo somewhere down below regarding the shell in case anything I forgot
|
||||||
|
|
||||||
|
TODO: Enforce role rights for menu items once it's stubbed out
|
||||||
|
|
||||||
|
|
||||||
TODO: Two kinds of mass fetch records in RAVEN
|
TODO: Two kinds of mass fetch records in RAVEN
|
||||||
|
|||||||
@@ -22,10 +22,13 @@ export default function initialize() {
|
|||||||
.then(function putFetchedNavItemsInStore() {
|
.then(function putFetchedNavItemsInStore() {
|
||||||
//put nav items into store
|
//put nav items into store
|
||||||
var key = 0;
|
var key = 0;
|
||||||
|
var sub = [];
|
||||||
|
var subSub = [];
|
||||||
|
//****************** CUSTOMERS
|
||||||
|
|
||||||
//Everyone has a home
|
//Everyone has a home
|
||||||
|
|
||||||
//create array of sub items under the home menu item
|
//create array of sub items under the home menu item
|
||||||
var sub = [];
|
|
||||||
|
|
||||||
//DASHBOARD
|
//DASHBOARD
|
||||||
sub.push({
|
sub.push({
|
||||||
@@ -51,7 +54,6 @@ export default function initialize() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//3rd level items under preferences
|
//3rd level items under preferences
|
||||||
var subSub = [];
|
|
||||||
|
|
||||||
//LOCALE
|
//LOCALE
|
||||||
subSub.push({
|
subSub.push({
|
||||||
@@ -95,6 +97,36 @@ export default function initialize() {
|
|||||||
key++
|
key++
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//****************** CUSTOMERS
|
||||||
|
//clear sublevel arrays
|
||||||
|
subsub = [];
|
||||||
|
sub = [];
|
||||||
|
|
||||||
|
//CUSTOMERS subitem
|
||||||
|
sub.push({
|
||||||
|
title: window.$gz.locale.get("ClientList"),
|
||||||
|
icon: "address-card",
|
||||||
|
route: "/customers",
|
||||||
|
key: key++
|
||||||
|
});
|
||||||
|
|
||||||
|
//HEAD OFFICES subitem
|
||||||
|
sub.push({
|
||||||
|
title: window.$gz.locale.get("HeadOfficeList"),
|
||||||
|
icon: "site-map",
|
||||||
|
route: "/headoffices",
|
||||||
|
key: key++
|
||||||
|
});
|
||||||
|
|
||||||
|
//CUSTOMER (TOP)
|
||||||
|
addNavItem(
|
||||||
|
window.$gz.locale.get("ClientList"),
|
||||||
|
"address-book",
|
||||||
|
undefined,
|
||||||
|
sub,
|
||||||
|
key++
|
||||||
|
);
|
||||||
|
|
||||||
//NOTE: If a user has read full record or better then they should have access to that area
|
//NOTE: If a user has read full record or better then they should have access to that area
|
||||||
|
|
||||||
// if (
|
// if (
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ export default {
|
|||||||
"NotifySubscriptionList",
|
"NotifySubscriptionList",
|
||||||
"UserPreferences",
|
"UserPreferences",
|
||||||
"Service",
|
"Service",
|
||||||
|
"ClientList",
|
||||||
|
"HeadOfficeList",
|
||||||
//"Dispatch",
|
//"Dispatch",
|
||||||
"Inventory",
|
"Inventory",
|
||||||
"Accounting",
|
"Accounting",
|
||||||
|
|||||||
Reference in New Issue
Block a user