This commit is contained in:
2020-07-24 16:18:54 +00:00
parent 3ce7c1e119
commit 46647d74b9
3 changed files with 17 additions and 2 deletions

View File

@@ -107,6 +107,9 @@ export default {
//Get the AyaNova stock REQUIRED role rights for that object //Get the AyaNova stock REQUIRED role rights for that object
let objectRoleRights = this.ROLE_RIGHTS[typeName]; let objectRoleRights = this.ROLE_RIGHTS[typeName];
if (!objectRoleRights) {
throw `authorizationroles::getRights type ${oType} not found in roles collection`;
}
//get the logged in user's role //get the logged in user's role
let userRole = window.$gz.store.state.roles; let userRole = window.$gz.store.state.roles;

View File

@@ -85,7 +85,12 @@ export default {
BizMetrics: 48, BizMetrics: 48,
Backup: 49, Backup: 49,
Notification: 50, Notification: 50,
NotifySubscription: 51 NotifySubscription: 51,
Reminder: 52,
UnitMeterReading: 53,
CustomerServiceRequest: 54,
ServiceBank: 55,
OpsNotificationSettings: 56
}; };
/** /**
* *

View File

@@ -248,7 +248,7 @@ export default {
appError: null, appError: null,
serverError: {} serverError: {}
}, },
rights: window.$gz.role.defaultRightsObject() rights: window.$gz.role.defaultRightsObject()
}; };
}, },
watch: { watch: {
@@ -430,6 +430,13 @@ function generateMenu(vm) {
}); });
} }
menuOptions.menuItems.push({
title: "NotifyQueue",
icon: null,
data: "ops-notify-queue",
key: "app:nav"
});
window.$gz.eventBus.$emit("menu-change", menuOptions); window.$gz.eventBus.$emit("menu-change", menuOptions);
} }