mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-12-01 02:17:50 +01:00
Fix #4828 showing incorrect certicificate value
This commit is contained in:
1 file changed
+10
-1
@@ -5,5 +5,14 @@ interface Props {
|
|||||||
certificate?: Certificate;
|
certificate?: Certificate;
|
||||||
}
|
}
|
||||||
export function CertificateFormatter({ certificate }: Props) {
|
export function CertificateFormatter({ certificate }: Props) {
|
||||||
return <T id={certificate ? "lets-encrypt" : "http-only"} />;
|
let translation = "http-only";
|
||||||
|
if (certificate) {
|
||||||
|
translation = certificate.provider;
|
||||||
|
if (translation === "letsencrypt") {
|
||||||
|
translation = "lets-encrypt";
|
||||||
|
} else if (translation === "other") {
|
||||||
|
translation = "certificates.custom";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return <T id={translation} />;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user