From d9c6e21492b33e3f04f93491888fcd399bfa82eb Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 13 Jul 2021 18:39:39 +0200 Subject: [PATCH] service view: disable all buttons for masked/not-found/unknown services at least if we have a unit state (atm only PVE and PMG report that) Signed-off-by: Thomas Lamprecht --- src/node/ServiceView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/ServiceView.js b/src/node/ServiceView.js index 5b7e82a..75a5c28 100644 --- a/src/node/ServiceView.js +++ b/src/node/ServiceView.js @@ -123,9 +123,10 @@ Ext.define('Proxmox.node.ServiceView', { restart_btn.enable(); start_btn.disable(); } - } else if (unit !== undefined && (unit === 'masked' || unit === 'unknown')) { + } else if (unit !== undefined && (unit === 'masked' || unit === 'unknown' || unit === 'not-found')) { start_btn.disable(); restart_btn.disable(); + stop_btn.disable(); } else { start_btn.enable(); stop_btn.disable(); -- 2.39.2