This commit is contained in:
2020-01-06 19:30:52 +00:00
parent 3202692593
commit a68a9666f5

View File

@@ -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