This commit is contained in:
2021-11-19 00:43:09 +00:00
parent eb5f4b4fb6
commit fa1265422f
3 changed files with 29 additions and 20 deletions

View File

@@ -69,24 +69,24 @@ function initNavPanel() {
}
//WORKORDERS subitem
if (window.$gz.store.state.customerRights.userSettings == true) {
if (window.$gz.role.canOpen(window.$gz.type.WorkOrder)) {
sub.push({
title: "WorkOrderList",
icon: "$ayiTools",
route: "/customer-workorders",
key: key++
});
window.$gz.store.commit("setHomePage", "/customer-workorders");
CustomerHomePageSet = true;
}
console.log(
"Can open workorder role:",
window.$gz.role.canOpen(window.$gz.type.WorkOrder)
);
if (window.$gz.store.state.customerRights.wo == true) {
sub.push({
title: "WorkOrderList",
icon: "$ayiTools",
route: "/customer-workorders",
key: key++
});
window.$gz.store.commit("setHomePage", "/customer-workorders");
CustomerHomePageSet = true;
}
//CSR LIST subitem
if (
window.$gz.role.canOpen(window.$gz.type.CustomerServiceRequest) &&
window.$gz.store.state.customerRights.csr == true
) {
if (window.$gz.store.state.customerRights.csr == true) {
sub.push({
title: "CustomerServiceRequestList",
icon: "$ayiConciergeBell",