Skip to content

Commit 76aff0f

Browse files
authored
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.
1 parent f023fc5 commit 76aff0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/config/section/infra/hosts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default {
9494
label: 'label.action.force.reconnect',
9595
message: 'message.confirm.action.force.reconnect',
9696
dataView: true,
97-
show: (record) => { return ['Disconnected', 'Up'].includes(record.state) }
97+
show: (record) => { return ['Disconnected', 'Up', 'Alert'].includes(record.state) }
9898
},
9999
{
100100
api: 'updateHost',

0 commit comments

Comments
 (0)