This commit is contained in:
2022-09-22 22:04:03 +00:00
parent 96763ba4a2
commit ea13024ae3
2 changed files with 10 additions and 7 deletions

View File

@@ -30,6 +30,7 @@ function initNavPanel() {
const useInventory = window.$gz.store.state.globalSettings.useInventory;
const licenseLockout = window.$gz.store.state.l;
const isSu = window.$gz.store.getters.isSuperUser == true;
/*Service = 1,
NotService = 2,
Customer = 3,

View File

@@ -245,13 +245,15 @@ function generateMenu(vm) {
vm: vm
});
menuOptions.menuItems.push({
title: "ShutDownServer",
icon: "$ayiStopCircle",
surface: false,
key: FORM_KEY + ":shutdown",
vm: vm
});
if (!window.$gz.store.state.globalSettings.sBuild)
//not available to service build (subscription build)
menuOptions.menuItems.push({
title: "ShutDownServer",
icon: "$ayiStopCircle",
surface: false,
key: FORM_KEY + ":shutdown",
vm: vm
});
}
window.$gz.eventBus.$emit("menu-change", menuOptions);