]> git.proxmox.com Git - pve-manager.git/commit
ui: guest stop: show overrule checkbox also if no task is active
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 Apr 2024 18:15:03 +0000 (20:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 20 Apr 2024 18:32:32 +0000 (20:32 +0200)
commit8c0d7d8fad7b3ae70f83aa65e044591fb0b2bec6
tree877f45cd62b1529a3a2e30f4795badee24844ca9
parente8b411f1c5539767f6af69f6ff3ece3e61c05af8
ui: guest stop: show overrule checkbox also if no task is active

The UI state about running tasks can be out of sync, especially for
situations where one quickly follows up with a stop, e.g. after
triggering a shutdown by mistake.

So, show the checkbox always for users that got Sys.Modify on (some)
node, but pre-check it still only if there where task detected on
component creation (we could watch the state though and show a hint,
but that's a bit over the top IMO).

Show it also when HA is enabled but explicitly disable it there,
hopefully this increases the chance that the users can understand that
this is done by design, and isn't a bug – ideally we would also show
an extra hint.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/GuestStop.js