che
che copied to clipboard
Delete Workspace item is enabled when it cannot be used
Describe the bug
In a workspace context menu (three dots at right side) there is Delete Workspace item. It is always enabled (for example when the workspace is in RUNNING or STARTING phase). When user selects this item, a new dialog windows appears. After checking checkbox and confirming the deleting an error is show which says that only STOPPED workspaces can be deleted.
Che version
nightly
Steps to reproduce
- Create and run a workspace
- Go to dashboard, open workspaces list
- Click on additional actions (three dots) and see the
Delete Workspaceis enabled - Go through confirmation window, confirm the deletion
- See the error
Expected behavior
Delete Workspace is enabled only on stopped workspaces.
Runtime
Openshift
Screenshots

Eclipse Che Logs
N/A
Additional context
Some other items in the context menu are correctly disabled when needed.
duplicates https://github.com/eclipse/che/issues/18761. that's really annoying behavior.
Well, not really duplicates, the references more is about bulk removal, when this is about Actions. I'm keeping both opened.
IMO it's duplicate of https://github.com/eclipse/che/issues/19081
Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.
Mark the issue as fresh with /remove-lifecycle stale in a new comment.
If this issue is safe to close now please do so.
Moderators: Add lifecycle/frozen label to avoid stale mode.
Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.
Mark the issue as fresh with /remove-lifecycle stale in a new comment.
If this issue is safe to close now please do so.
Moderators: Add lifecycle/frozen label to avoid stale mode.
Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.
Mark the issue as fresh with /remove-lifecycle stale in a new comment.
If this issue is safe to close now please do so.
Moderators: Add lifecycle/frozen label to avoid stale mode.