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.
This commit is contained in:
sato03 2024-01-10 03:35:46 -03:00 committed by GitHub
parent f023fc53c0
commit 76aff0f422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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',