This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user