From 112d63bf325f3ee89c5e572f2d8676518f4ccb3b Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 13 Jul 2021 16:50:12 +0000 Subject: [PATCH] --- ayanova/src/api/initialize.js | 10 +++++----- ayanova/src/views/home-dashboard.vue | 2 +- ayanova/src/views/home-notifications.vue | 2 +- ayanova/src/views/home-notify-subscription.vue | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 49225f31..3edd7d2f 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -35,7 +35,7 @@ function initNavPanel() { ServiceContractor = 5 */ //########## OUTSIDE USERS GROUP (CUSTOMER / HEADOFFICE) ### - if (window.$gz.store.state.getters.isCustomerUser == true) { + if (window.$gz.store.getters.isCustomerUser == true) { //clear sublevel array sub = []; @@ -55,7 +55,7 @@ function initNavPanel() { CustomerHomePageSet = true; } - if (window.$gz.store.state.getters.canSubscribeToNotifications) { + if (window.$gz.store.getters.canSubscribeToNotifications) { sub.push({ title: "NotifySubscriptionList", icon: "$ayiBullhorn", @@ -109,8 +109,8 @@ function initNavPanel() { } //###### SUBCONTRACTORS ###### - //console.log(window.$gz.store.state.getters.isSubContractorUser); - if (window.$gz.store.state.getters.isSubContractorUser == true) { + //console.log(window.$gz.store.getters.isSubContractorUser); + if (window.$gz.store.getters.isSubContractorUser == true) { //clear sublevel array sub = []; @@ -734,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.getters.isSubContractorUser == false) + (window.$gz.store.getters.isSubContractorUser == false) ) { addNavItem( "Evaluate", diff --git a/ayanova/src/views/home-dashboard.vue b/ayanova/src/views/home-dashboard.vue index 487d78ed..eb700770 100644 --- a/ayanova/src/views/home-dashboard.vue +++ b/ayanova/src/views/home-dashboard.vue @@ -380,7 +380,7 @@ function generateMenu(vm) { vm: vm }); menuOptions.menuItems.push({ divider: true, inset: false }); - if (vm.$store.state.getters.isScheduleableUser) { + if (vm.$store.getters.isScheduleableUser) { menuOptions.menuItems.push({ title: "WorkOrderItemScheduledUserList", icon: "$ayiUserClock", diff --git a/ayanova/src/views/home-notifications.vue b/ayanova/src/views/home-notifications.vue index f891ce75..7933a1a4 100644 --- a/ayanova/src/views/home-notifications.vue +++ b/ayanova/src/views/home-notifications.vue @@ -298,7 +298,7 @@ function generateMenu(vm) { vm: vm }); - if (!window.$gz.store.state.getters.isCustomerUser) { + if (!window.$gz.store.getters.isCustomerUser) { menuOptions.menuItems.push({ title: "DirectNotification", icon: "$ayiCommentAlt", diff --git a/ayanova/src/views/home-notify-subscription.vue b/ayanova/src/views/home-notify-subscription.vue index 04ab9f9e..9a7648fb 100644 --- a/ayanova/src/views/home-notify-subscription.vue +++ b/ayanova/src/views/home-notify-subscription.vue @@ -431,7 +431,7 @@ export default { } }, showTags() { - if (!window.$gz.store.state.getters.isCustomerUser) { + if (!window.$gz.store.getters.isCustomerUser) { //customers NEVER see tags anywhere, that's private information and they do not use or require it switch (this.obj.eventType) { case 27: //General notification @@ -774,7 +774,7 @@ async function populateSelectionLists(vm) { //ensure the pick lists required are pre-fetched await window.$gz.enums.fetchEnumList("NotifyEventType"); const tempEventTypes = window.$gz.enums.getSelectionList("NotifyEventType"); - if (window.$gz.store.state.getters.isCustomerUser) { + if (window.$gz.store.getters.isCustomerUser) { vm.selectLists.eventTypes = tempEventTypes.filter(z => { //return true if it's a type allowed by customer *and* they have customerRights to it