This commit is contained in:
Fang-Pen Lin
2025-11-07 09:21:01 -08:00
parent 4b0f7a80d7
commit 3ac3f44f1a
3 changed files with 11 additions and 9 deletions
+1
View File
@@ -7,6 +7,7 @@ declare global {
POSTHOG_API_KEY?: string; POSTHOG_API_KEY?: string;
INTERCOM_ID?: string; INTERCOM_ID?: string;
TELEMETRY_CAPTURING_ENABLED: string; TELEMETRY_CAPTURING_ENABLED: string;
ACME_FEATURE_ENABLED?: boolean;
}; };
} }
} }
@@ -113,6 +113,7 @@ export const CertificateProfilesTab = () => {
mode="edit" mode="edit"
/> />
{selectedProfile.enrollmentType === "acme" && (
<RevealAcmeEabSecretModal <RevealAcmeEabSecretModal
isOpen={isRevealProfileAcmeEabSecretModalOpen} isOpen={isRevealProfileAcmeEabSecretModalOpen}
onClose={() => { onClose={() => {
@@ -121,6 +122,7 @@ export const CertificateProfilesTab = () => {
}} }}
profile={selectedProfile} profile={selectedProfile}
/> />
)}
<DeleteActionModal <DeleteActionModal
isOpen={isDeleteModalOpen} isOpen={isDeleteModalOpen}
@@ -26,7 +26,6 @@ export const RevealAcmeEabSecretModal = ({ isOpen, onClose, profile }: Props) =>
const [isEabSecretCopied, setIsEabSecretCopied] = useToggle(false); const [isEabSecretCopied, setIsEabSecretCopied] = useToggle(false);
const revealAcmeEabSecret = useRevealAcmeEabSecret({ profileId: profile.id }); const revealAcmeEabSecret = useRevealAcmeEabSecret({ profileId: profile.id });
const { data, isLoading, isError, error } = revealAcmeEabSecret; const { data, isLoading, isError, error } = revealAcmeEabSecret;
const { directoryUrl } = profile.acmeConfig!; const { directoryUrl } = profile.acmeConfig!;
const { eabKid, eabSecret } = data ?? { eabKid: "", eabSecret: "" }; const { eabKid, eabSecret } = data ?? { eabKid: "", eabSecret: "" };