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

@@ -28,10 +28,10 @@ function initNavPanel() {
let sub = []; let sub = [];
/*Service = 1, /*Service = 1,
NotService = 2, NotService = 2,
Customer = 3, Customer = 3,
HeadOffice = 4, HeadOffice = 4,
ServiceContractor = 5 */ ServiceContractor = 5 */
//########## OUTSIDE USERS GROUP (CUSTOMER / HEADOFFICE) ### //########## OUTSIDE USERS GROUP (CUSTOMER / HEADOFFICE) ###
if (window.$gz.store.getters.isCustomerUser == true) { if (window.$gz.store.getters.isCustomerUser == true) {
@@ -42,17 +42,17 @@ 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",
route: "/home-user-settings", route: "/home-user-settings",
key: key++ key: key++
}); });
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({
title: "Schedule",
icon: "$sockiCalendarAlt",
route: "/svc-schedule",
key: key++
});
}
//**** Service (TOP GROUP) sub.push({
title: "Schedule",
icon: "$sockiCalendarAlt",
route: "/svc-schedule",
key: key++
});
//**** 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