This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user