Disable Delete button when VM is in stopping/starting/provisioning state #37

Open
opened 2026-03-18 13:15:51 +00:00 by mahmoud · 0 comments
Owner

When a VM is in a transitional state (stopping, starting, provisioning, restarting), the Delete button should be disabled. Currently pressing Delete while a VM is stopping returns:

VM must be stopped before deletion (current state: Stopping)

This error is correct behavior on the backend, but should never be reachable from the UI.

Fix:

  • Disable Delete button when vm.state is: stopping, starting, provisioning, restarting
  • Enable Delete only when state is: stopped, error
  • Tooltip on disabled button: "Wait for VM to finish {state} before deleting"
When a VM is in a transitional state (stopping, starting, provisioning, restarting), the Delete button should be disabled. Currently pressing Delete while a VM is stopping returns: ``` VM must be stopped before deletion (current state: Stopping) ``` This error is correct behavior on the backend, but should never be reachable from the UI. Fix: - Disable Delete button when vm.state is: stopping, starting, provisioning, restarting - Enable Delete only when state is: stopped, error - Tooltip on disabled button: "Wait for VM to finish {state} before deleting"
mahmoud self-assigned this 2026-03-18 13:15:53 +00:00
mahmoud added this to the ACTIVE project 2026-03-18 13:16:18 +00:00
mahmoud added this to the now milestone 2026-03-18 13:16:22 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_compute#37
No description provided.