Got it building on new laptop

This commit is contained in:
2022-12-17 23:05:34 +00:00
parent bcf87e7681
commit 85083333cf
2 changed files with 26 additions and 63 deletions

View File

@@ -1,12 +1,12 @@
{ {
"name": "sockeye", "name": "sockeye",
"version": "8.0.0", "version": "8.0.28",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "sockeye", "name": "sockeye",
"version": "8.0.0", "version": "8.0.28",
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.3.0", "@fortawesome/fontawesome-svg-core": "^1.3.0",
"@fortawesome/free-regular-svg-icons": "^5.15.4", "@fortawesome/free-regular-svg-icons": "^5.15.4",

View File

@@ -42,7 +42,7 @@ function initNavPanel() {
let CustomerHomePageSet = false; let CustomerHomePageSet = false;
//USER SETTINGS //USER SETTINGS
if (window.$gz.store.state.customerRights.userSettings == true) { //if (window.$gz.store.state.customerRights.userSettings == true) {
sub.push({ sub.push({
title: "UserSettings", title: "UserSettings",
icon: "$sockiUserCog", icon: "$sockiUserCog",
@@ -52,7 +52,7 @@ function initNavPanel() {
window.$gz.store.commit("setHomePage", "/home-user-settings"); window.$gz.store.commit("setHomePage", "/home-user-settings");
CustomerHomePageSet = true; CustomerHomePageSet = true;
} // }
if (window.$gz.store.getters.canSubscribeToNotifications) { if (window.$gz.store.getters.canSubscribeToNotifications) {
sub.push({ sub.push({
@@ -211,25 +211,20 @@ function initNavPanel() {
); );
} }
//####### SERVICE GROUP //####### SHARED GROUP
sub = []; sub = [];
//SCHEDULE (service) //SCHEDULE (shared)
if (
window.$gz.role.canOpen(window.$gz.type.WorkOrder) ||
window.$gz.role.canOpen(window.$gz.type.Quote) ||
window.$gz.role.canOpen(window.$gz.type.PM)
) {
sub.push({ sub.push({
title: "Schedule", title: "Schedule",
icon: "$sockiCalendarAlt", icon: "$sockiCalendarAlt",
route: "/svc-schedule", route: "/svc-schedule",
key: key++ key: key++
}); });
}
//**** Service (TOP GROUP) //**** SHARED (TOP GROUP)
if ( if (
sub.length > 0 && sub.length > 0 &&
!window.$gz.role.hasRole([ !window.$gz.role.hasRole([
@@ -239,38 +234,6 @@ function initNavPanel() {
addNavItem("Service", "$sockiToolbox", undefined, sub, key++, "service"); addNavItem("Service", "$sockiToolbox", undefined, sub, key++, "service");
} }
//######### INVENTORY GROUP
//clear sublevel array
sub = [];
//PARTS (part list)
if (window.$gz.role.canOpen(window.$gz.type.Part)) {
sub.push({
title: "PartList",
icon: "$sockiBoxes",
route: "/inv-parts",
key: key++
});
}
//PURCHASE ORDERS / PART REQUESTS
if (window.$gz.role.canOpen(window.$gz.type.PurchaseOrder)) {
sub.push({
title: "InventoryPurchaseOrders",
icon: "$sockiTruckLoading",
route: "/inv-purchase-orders",
key: key++
});
sub.push({
title: "WorkOrderItemPartRequestList",
icon: "$sockiParachuteBox",
route: "/inv-part-requests",
key: key++
});
}
//****************** ACCOUNTING //****************** ACCOUNTING
//SOCKEYE Keeping this for very likely future accounting functionality //SOCKEYE Keeping this for very likely future accounting functionality