Skip to content

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

fix(pki): keep the import header and footer tied to the active tab

Saif2fd8c41c7c16
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateImportModal.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateImportModal.tsx
index 7c66019593..3f40510f42 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateImportModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateImportModal.tsx
@@ -451,7 +451,7 @@ export const CertificateImportModal = ({ popUp, handlePopUpToggle, applicationId
description: `${imported} of ${outcomes.length} certificate${outcomes.length === 1 ? "" : "s"} imported.`
};
}
- if (entries)
+ if (entries && format === "pkcs12")
return {
title: "Review & Import",
description: `${entries.length} certificate${entries.length === 1 ? "" : "s"} found in this keystore. Choose which to import.`
@@ -477,7 +477,7 @@ export const CertificateImportModal = ({ popUp, handlePopUpToggle, applicationId
);
}
- if (entries) {
+ if (entries && format === "pkcs12") {
return (
<DialogFooter>
<Button variant="outline" onClick={() => handlePopUpToggle("certificateImport", false)}>