This commit is contained in:
2020-12-08 00:11:02 +00:00
parent 73c94204df
commit b10301e0d0

View File

@@ -43,8 +43,7 @@ function initNavPanel() {
sub = [];
//Set homePage in store to customer csr for this user type
window.$gz.store.commit("setHomePage", "/customer-csr-list");
let CustomerHomePageSet = false;
//USER SETTINGS
sub.push({
@@ -69,6 +68,9 @@ function initNavPanel() {
route: "/customer-csr-list",
key: key++
});
window.$gz.store.commit("setHomePage", "/customer-csr-list");
CustomerHomePageSet = true;
}
//WORKORDERS subitem
@@ -82,9 +84,13 @@ function initNavPanel() {
}
//** CUSTOMER LOGIN HOME (TOP)
addNavItem("Home", "$ayiHome", undefined, sub, key++, "homecustomer");
//last resort home page if user has no roles set
if (!CustomerHomePageSet) {
window.$gz.store.commit("setHomePage", "/home-user-settings");
}
return;
}