mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-17 17:46:01 +00:00
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:
parent
0c15c08eee
commit
d9c6e21492
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user