Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

delete modal tweaks

x032205786b9c6bbc26
diff --git a/frontend/src/pages/pam/PamDomainByIDPage/PamDomainByIDPage.tsx b/frontend/src/pages/pam/PamDomainByIDPage/PamDomainByIDPage.tsx
index b465791cad..907d48dea7 100644
--- a/frontend/src/pages/pam/PamDomainByIDPage/PamDomainByIDPage.tsx
+++ b/frontend/src/pages/pam/PamDomainByIDPage/PamDomainByIDPage.tsx
@@ -214,7 +214,8 @@ const PageContent = () => {
<DeleteActionModal
isOpen={isDeleteModalOpen}
- title={`Delete Domain ${domain.name}?`}
+ title={`Delete Domain "${domain.name}"?`}
+ subTitle="This will permanently remove this domain. Associated resources will be unlinked but not deleted."
onChange={(isOpen) => setIsDeleteModalOpen(isOpen)}
deleteKey={domain.name}
onDeleteApproved={handleDeleteConfirm}
diff --git a/frontend/src/pages/pam/PamDomainsPage/components/PamDomainsTable.tsx b/frontend/src/pages/pam/PamDomainsPage/components/PamDomainsTable.tsx
index 39a1c7de31..ece3b291ba 100644
--- a/frontend/src/pages/pam/PamDomainsPage/components/PamDomainsTable.tsx
+++ b/frontend/src/pages/pam/PamDomainsPage/components/PamDomainsTable.tsx
@@ -238,7 +238,7 @@ export const PamDomainsTable = ({ projectId }: Props) => {
title={`Delete domain "${(popUp.deleteDomain.data as TPamDomain)?.name}"?`}
subTitle="This will permanently remove this domain. Associated resources will be unlinked but not deleted."
onChange={(isOpen) => handlePopUpToggle("deleteDomain", isOpen)}
- deleteKey="confirm"
+ deleteKey={(popUp.deleteDomain.data as TPamDomain)?.name || "confirm"}
onDeleteApproved={handleDelete}
/>
</div>