From a68a9666f5159750635e8049996ba5037d03a186 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 6 Jan 2020 19:30:52 +0000 Subject: [PATCH] --- ayanova/src/api/initialize.js | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 9ee328ab..ff406623 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -679,6 +679,45 @@ export default function initialize() { key++ ); } + + //****************** CUSTOMER USER / HEAD OFFICE USER UI + if ( + window.$gz.role.hasRole([ + window.$gz.role.AUTHORIZATION_ROLES.ClientFull, + window.$gz.role.AUTHORIZATION_ROLES.ClientLimited + ]) + ) { + //clear sublevel array + sub = []; + + //Set homePage in store to dashboard + window.$gz.store.commit("setHomePage", "/customer-csr-list"); + + //CSR LIST subitem + sub.push({ + title: window.$gz.locale.get("ClientServiceRequestList"), + icon: "child", + route: "/customer-csr-list", + key: key++ + }); + + //WORKORDERS subitem + sub.push({ + title: window.$gz.locale.get("WorkorderServiceList"), + icon: "tools", + route: "/customer-workorders", + key: key++ + }); + + //** CUSTOMER LOGIN HOME (TOP) + addNavItem( + window.$gz.locale.get("Home"), + "home", + undefined, + sub, + key++ + ); + } }) .then(() => { //CACHE LOCALE SETTINGS