Skip to content

In the Infrastructure -Host tab (List view) when you disable/Enable the host, it doesn't refresh the page, User doesn't see the updated status. #10604

@Imvedansh

Description

@Imvedansh

problem

When a user disables/Enables a host from the Infrastructure - Host tab (List view), the UI does not refresh automatically to reflect the new disabled state of the host. The API call succeeds, but the user doesn't see the state change until they manually refresh the page.

versions

CloudStack 4.20.0.0

The steps to reproduce the bug

1).Navigate to Infrastructure > Hosts tab (List view)
2).Select a host that is in "Enabled" state
3).Click the Disable /Enableaction (pause icon)
4).Confirm the action in the popup dialog
5)Observe that the host state does not update in the list view

What to do about it?

In HostEnableDisable.vue ->
--Verify Event Handling: Make sure the event handler in your action configuration is correctly set up. Check if the
'refresh-data' event is being received.
--Direct Store Access: Modify your handleSubmit method to directly access the store:

Image

In host.js->
--Refresh the state:Update the UI as per API call

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions