diff --git a/client/src/app/components/ConfirmDeleteDialog/ConfirmDeleteDialog.css b/client/src/app/components/ConfirmDeleteDialog/ConfirmDeleteDialog.css index fa30e21b3a..4019db40cf 100644 --- a/client/src/app/components/ConfirmDeleteDialog/ConfirmDeleteDialog.css +++ b/client/src/app/components/ConfirmDeleteDialog/ConfirmDeleteDialog.css @@ -1,8 +1,3 @@ .confirm-deletion { margin-top: var(--pf-v5-global--spacer--xl); } - -.confirm-deletion-input { - margin-top: var(--pf-v5-global--spacer--sm); - margin-bottom: var(--pf-v5-global--spacer--sm); -} diff --git a/client/src/app/components/ConfirmDeleteDialog/ConfirmDeleteDialog.tsx b/client/src/app/components/ConfirmDeleteDialog/ConfirmDeleteDialog.tsx index 60482f8256..5e64af7409 100644 --- a/client/src/app/components/ConfirmDeleteDialog/ConfirmDeleteDialog.tsx +++ b/client/src/app/components/ConfirmDeleteDialog/ConfirmDeleteDialog.tsx @@ -46,6 +46,13 @@ const ConfirmDeleteDialog: FC = ({ onClose(); }; + const handleOnConfirmDelete = () => { + if (!isDisabled) { + setNameToDeleteInput(""); + onConfirmDelete(); + } + }; + const confirmBtn = ( @@ -70,6 +77,7 @@ const ConfirmDeleteDialog: FC = ({ {cancelBtnLabel ?? t("actions.cancel")} ); + return ( = ({ setNameToDeleteInput(value)} />