From c64e6310a63e6028d99042ae952c2d72963f3843 Mon Sep 17 00:00:00 2001 From: carlosmonastyrski Date: Thu, 24 Apr 2025 10:26:54 -0300 Subject: [PATCH] fix(delete-project): Add tooltip for delete project button when it has protection enabled --- .../DeleteProjectSection.tsx | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/DeleteProjectSection/DeleteProjectSection.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/DeleteProjectSection/DeleteProjectSection.tsx index 2f11523c4..ffb9e93fc 100644 --- a/frontend/src/pages/secret-manager/SettingsPage/components/DeleteProjectSection/DeleteProjectSection.tsx +++ b/frontend/src/pages/secret-manager/SettingsPage/components/DeleteProjectSection/DeleteProjectSection.tsx @@ -3,7 +3,7 @@ import { useNavigate } from "@tanstack/react-router"; import { createNotification } from "@app/components/notifications"; import { ProjectPermissionCan } from "@app/components/permissions"; -import { Button, DeleteActionModal } from "@app/components/v2"; +import { Button, DeleteActionModal, Tooltip } from "@app/components/v2"; import { LeaveProjectModal } from "@app/components/v2/LeaveProjectModal"; import { ProjectPermissionActions, @@ -142,16 +142,22 @@ export const DeleteProjectSection = () => {
{(isAllowed) => ( - + + )} {!isOnlyAdminMember && (