From ea13024ae36bbef57e0b4296c7b3a525858e4ae1 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 22 Sep 2022 22:04:03 +0000 Subject: [PATCH] --- ayanova/src/api/initialize.js | 1 + ayanova/src/views/ops-server-state.vue | 16 +++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) 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);