]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
service view: disable all buttons for masked/not-found/unknown services
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Jul 2021 16:39:39 +0000 (18:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Jul 2021 16:39:43 +0000 (18:39 +0200)
at least if we have a unit state (atm only PVE and PMG report that)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/node/ServiceView.js

index 5b7e82a3e6b95342f148bb66db52b352a0d2976f..75a5c28db2ed77ca35b1eb487b69575a19da91a5 100644 (file)
@@ -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();