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 machineStatusPreflight = actionToDo => {
|
||||
|
|
@ -192,7 +193,7 @@ const MachineActions = memo(({ machine, onActionSuccess }) => {
|
|||
</div>
|
||||
<ConfirmDialog
|
||||
disabled={disabled}
|
||||
open={action.command}
|
||||
open={confirmDialogOpen}
|
||||
title={`${action.display} this machine?`}
|
||||
errorMessage={errorMessage}
|
||||
toBeConfirmed={machine.name}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue