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