This commit is contained in:
@@ -43,8 +43,7 @@ function initNavPanel() {
|
|||||||
sub = [];
|
sub = [];
|
||||||
|
|
||||||
//Set homePage in store to customer csr for this user type
|
//Set homePage in store to customer csr for this user type
|
||||||
|
let CustomerHomePageSet = false;
|
||||||
window.$gz.store.commit("setHomePage", "/customer-csr-list");
|
|
||||||
|
|
||||||
//USER SETTINGS
|
//USER SETTINGS
|
||||||
sub.push({
|
sub.push({
|
||||||
@@ -69,6 +68,9 @@ function initNavPanel() {
|
|||||||
route: "/customer-csr-list",
|
route: "/customer-csr-list",
|
||||||
key: key++
|
key: key++
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.$gz.store.commit("setHomePage", "/customer-csr-list");
|
||||||
|
CustomerHomePageSet = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//WORKORDERS subitem
|
//WORKORDERS subitem
|
||||||
@@ -82,9 +84,13 @@ function initNavPanel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//** CUSTOMER LOGIN HOME (TOP)
|
//** CUSTOMER LOGIN HOME (TOP)
|
||||||
|
|
||||||
addNavItem("Home", "$ayiHome", undefined, sub, key++, "homecustomer");
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user