From 76aff0f422a476f1de720999d309f8f07756cd50 Mon Sep 17 00:00:00 2001 From: sato03 Date: Wed, 10 Jan 2024 03:35:46 -0300 Subject: [PATCH] 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',