diff --git a/messages/en-US.json b/messages/en-US.json index c566d500e..5d4facf1c 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -1596,7 +1596,7 @@ "initialSetupDescription": "Create the intial server admin account. Only one server admin can exist. You can always change these credentials later.", "createAdminAccount": "Create Admin Account", "setupErrorCreateAdmin": "An error occurred while creating the server admin account.", - "certificateStatus": "Certificate Status", + "certificateStatus": "Certificate", "loading": "Loading", "loadingAnalytics": "Loading Analytics", "restart": "Restart", diff --git a/src/components/CertificateStatus.tsx b/src/components/CertificateStatus.tsx index 7dd9c5dd2..daf373783 100644 --- a/src/components/CertificateStatus.tsx +++ b/src/components/CertificateStatus.tsx @@ -117,6 +117,8 @@ export default function CertificateStatus({ ); } + const isPending = cert.status === "pending"; + return (
{showLabel && ( @@ -124,27 +126,46 @@ export default function CertificateStatus({ {t("certificateStatus")}: )} - - - {cert.status.charAt(0).toUpperCase() + cert.status.slice(1)} - {shouldShowRefreshButton(cert.status, cert.updatedAt) && ( - - )} + {isPending ? ( + + ) : ( + + + {cert.status.charAt(0).toUpperCase() + cert.status.slice(1)} + {shouldShowRefreshButton(cert.status, cert.updatedAt) && ( + + )} + - + )}
); }