From bfcf1851380ff55acb39f94358addf987ab992d8 Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Wed, 11 Oct 2023 20:47:45 +0530 Subject: [PATCH] chore(ui): add prepareType prop support in manage button component (#13524) --- .../common/entityPageInfo/ManageButton/ManageButton.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/ManageButton/ManageButton.tsx b/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/ManageButton/ManageButton.tsx index b934e16aeec..aacf4b3b823 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/ManageButton/ManageButton.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/ManageButton/ManageButton.tsx @@ -53,6 +53,7 @@ interface Props { editDisplayNamePermission?: boolean; onEditDisplayName?: (data: EntityName) => Promise; allowRename?: boolean; + prepareType?: boolean; } const ManageButton: FC = ({ @@ -75,6 +76,7 @@ const ManageButton: FC = ({ editDisplayNamePermission, onEditDisplayName, allowRename, + prepareType = true, }) => { const { t } = useTranslation(); const [isDelete, setIsDelete] = useState(false); @@ -257,6 +259,7 @@ const ManageButton: FC = ({ entityType={entityType || ''} hardDeleteMessagePostFix={hardDeleteMessagePostFix} isRecursiveDelete={isRecursiveDelete} + prepareType={prepareType} softDeleteMessagePostFix={softDeleteMessagePostFix} visible={isDelete} onCancel={() => setIsDelete(false)}