From d26daaf8dc3acd31ef5ace2a7f72e6cbb90aa779 Mon Sep 17 00:00:00 2001 From: Aviv Turgeman Date: Wed, 25 Sep 2024 13:03:57 +0300 Subject: [PATCH] CNV-43588: Start/Restart/Stop icon controls disappear during shutdown Signed-off-by: Aviv Turgeman --- .../VMActionsIconBar/components/ActionIconButton.tsx | 10 ++++++++-- .../actions/components/VMActionsIconBar/utils/types.ts | 3 ++- .../actions/components/VMActionsIconBar/utils/utils.ts | 9 +++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/views/virtualmachines/actions/components/VMActionsIconBar/components/ActionIconButton.tsx b/src/views/virtualmachines/actions/components/VMActionsIconBar/components/ActionIconButton.tsx index 78cc2b4f6..dbeadede8 100644 --- a/src/views/virtualmachines/actions/components/VMActionsIconBar/components/ActionIconButton.tsx +++ b/src/views/virtualmachines/actions/components/VMActionsIconBar/components/ActionIconButton.tsx @@ -7,7 +7,13 @@ import { VMActionIconDetails } from '@virtualmachines/actions/components/VMActio import '../VMActionsIconBar.scss'; -const ActionIconButton: FC = ({ action, Icon, iconClassname, isHidden }) => { +const ActionIconButton: FC = ({ + action, + Icon, + iconClassname, + isDisabled, + isHidden, +}) => { const [actionAllowed] = useAccessReview(action?.accessReview); const handleClick = () => { @@ -23,7 +29,7 @@ const ActionIconButton: FC = ({ action, Icon, iconClassname