This commit is contained in:
@@ -35,7 +35,7 @@ function initNavPanel() {
|
||||
ServiceContractor = 5 */
|
||||
|
||||
//########## OUTSIDE USERS GROUP (CUSTOMER / HEADOFFICE) ###
|
||||
if (window.$gz.store.state.isCustomerUser == true) {
|
||||
if (window.$gz.store.state.getters.isCustomerUser == true) {
|
||||
//clear sublevel array
|
||||
sub = [];
|
||||
|
||||
@@ -55,7 +55,7 @@ function initNavPanel() {
|
||||
CustomerHomePageSet = true;
|
||||
}
|
||||
|
||||
if (window.$gz.store.state.notifyAvailable) {
|
||||
if (window.$gz.store.state.getters.canSubscribeToNotifications) {
|
||||
sub.push({
|
||||
title: "NotifySubscriptionList",
|
||||
icon: "$ayiBullhorn",
|
||||
@@ -108,6 +108,38 @@ function initNavPanel() {
|
||||
return;
|
||||
}
|
||||
|
||||
//###### SUBCONTRACTORS ######
|
||||
//console.log(window.$gz.store.state.getters.isSubContractorUser);
|
||||
if (window.$gz.store.state.getters.isSubContractorUser == true) {
|
||||
//clear sublevel array
|
||||
sub = [];
|
||||
|
||||
//USER SETTINGS
|
||||
|
||||
sub.push({
|
||||
title: "UserSettings",
|
||||
icon: "$ayiUserCog",
|
||||
route: "/home-user-settings",
|
||||
key: key++
|
||||
});
|
||||
|
||||
//SCHEDULE (personal)
|
||||
sub.push({
|
||||
title: "Schedule",
|
||||
icon: "$ayiCalendarDay",
|
||||
route: "/home-schedule",
|
||||
key: key++
|
||||
});
|
||||
|
||||
//** HOME (TOP)
|
||||
addNavItem("Home", "$ayiHome", undefined, sub, key++, "home");
|
||||
|
||||
//set default home page
|
||||
window.$gz.store.commit("setHomePage", "/home-schedule");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
//###### ALL INSIDE USERS FROM HERE DOWN ###############
|
||||
|
||||
//###### EXPIRED LICENSE GROUP
|
||||
@@ -702,7 +734,7 @@ function initNavPanel() {
|
||||
//as long as they are a normal User type and not a subcontractor type
|
||||
if (
|
||||
(licenseState == 1) &
|
||||
(window.$gz.store.state.isSubContractorUser == false)
|
||||
(window.$gz.store.state.getters.isSubContractorUser == false)
|
||||
) {
|
||||
addNavItem(
|
||||
"Evaluate",
|
||||
|
||||
Reference in New Issue
Block a user