This is an automated email from the ASF dual-hosted git repository.

shwstppr pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.18 by this push:
     new 76aff0f422a Add reconnect button to hosts on alert (#8468)
76aff0f422a is described below

commit 76aff0f422a476f1de720999d309f8f07756cd50
Author: sato03 <[email protected]>
AuthorDate: Wed Jan 10 03:35:46 2024 -0300

    Add reconnect button to hosts on alert (#8468)
    
    Currently, if a host is on alert, the option to reconnect it is not 
presented in the UI.
    
    This PR addresses this issue by adding a reconnect button to the host if it 
is in an alert state.
---
 ui/src/config/section/infra/hosts.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/config/section/infra/hosts.js 
b/ui/src/config/section/infra/hosts.js
index cb0de90b26c..62fd6ea18dd 100644
--- a/ui/src/config/section/infra/hosts.js
+++ b/ui/src/config/section/infra/hosts.js
@@ -94,7 +94,7 @@ export default {
       label: 'label.action.force.reconnect',
       message: 'message.confirm.action.force.reconnect',
       dataView: true,
-      show: (record) => { return ['Disconnected', 'Up'].includes(record.state) 
}
+      show: (record) => { return ['Disconnected', 'Up', 
'Alert'].includes(record.state) }
     },
     {
       api: 'updateHost',

Reply via email to