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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-13 18:39:39 +02:00
parent 0c15c08eee
commit d9c6e21492

View File

@ -123,9 +123,10 @@ Ext.define('Proxmox.node.ServiceView', {
restart_btn.enable(); restart_btn.enable();
start_btn.disable(); 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(); start_btn.disable();
restart_btn.disable(); restart_btn.disable();
stop_btn.disable();
} else { } else {
start_btn.enable(); start_btn.enable();
stop_btn.disable(); stop_btn.disable();