This commit is contained in:
2021-07-13 16:50:12 +00:00
parent 3088c2fc6d
commit 112d63bf32
4 changed files with 9 additions and 9 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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