Skip to content

Commit

Permalink
Fix certificate request copy & download
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-slobodian committed Feb 3, 2025
1 parent ed21b1b commit 7a59825
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/certificates-list/CertificatesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ export const CertificatesList: React.FunctionComponent<
title={t("certificates.list.action.copy")}
value={
raw.byteLength
? () => certificateRawToPem(raw, type)
? () =>
certificateRawToPem(
raw,
type === "x509" ? "x509" : "csr"
)
: ""
}
className={styles.action_icon_button}
Expand All @@ -249,7 +253,11 @@ export const CertificatesList: React.FunctionComponent<
title={t("certificates.list.action.download")}
onClick={() =>
raw.byteLength &&
downloadCertificate(certificateName, raw, type)
downloadCertificate(
certificateName,
raw,
type === "x509" ? "x509" : "csr"
)
}
size="small"
className={styles.action_icon_button}
Expand Down

0 comments on commit 7a59825

Please sign in to comment.