diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 6e13cf6a..3dce1de6 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -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, diff --git a/ayanova/src/views/ops-server-state.vue b/ayanova/src/views/ops-server-state.vue index 5a34ba1d..b1d5ce9a 100644 --- a/ayanova/src/views/ops-server-state.vue +++ b/ayanova/src/views/ops-server-state.vue @@ -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);