Imvedansh opened a new issue, #10604:
URL: https://github.com/apache/cloudstack/issues/10604
### 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:

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

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]