fix: revert explicit cast
This commit is contained in:
parent
e07d33fd41
commit
712b31e3ff
1 changed files with 2 additions and 1 deletions
|
|
@ -97,6 +97,7 @@ const MachineActions = memo(({ machine, onActionSuccess }) => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const confirmDialogOpen = Boolean(action.command)
|
||||||
const disabled = !!(action?.command === 'restartServices' && loadingEvents)
|
const disabled = !!(action?.command === 'restartServices' && loadingEvents)
|
||||||
|
|
||||||
const machineStatusPreflight = actionToDo => {
|
const machineStatusPreflight = actionToDo => {
|
||||||
|
|
@ -192,7 +193,7 @@ const MachineActions = memo(({ machine, onActionSuccess }) => {
|
||||||
</div>
|
</div>
|
||||||
<ConfirmDialog
|
<ConfirmDialog
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
open={action.command}
|
open={confirmDialogOpen}
|
||||||
title={`${action.display} this machine?`}
|
title={`${action.display} this machine?`}
|
||||||
errorMessage={errorMessage}
|
errorMessage={errorMessage}
|
||||||
toBeConfirmed={machine.name}
|
toBeConfirmed={machine.name}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue