diff --git a/src/components/InternalResourceForm.tsx b/src/components/InternalResourceForm.tsx index 3a693d82b..6d7fd1537 100644 --- a/src/components/InternalResourceForm.tsx +++ b/src/components/InternalResourceForm.tsx @@ -54,6 +54,7 @@ import { CaretSortIcon } from "@radix-ui/react-icons"; import { MachinesSelector } from "./machines-selector"; import DomainPicker from "@app/components/DomainPicker"; import { SwitchInput } from "@app/components/SwitchInput"; +import CertificateStatus from "@app/components/CertificateStatus"; // --- Helpers (shared) --- @@ -1072,28 +1073,48 @@ export function InternalResourceForm({ }} /> - ( - - - + ( + + + + + + )} + /> + {variant === "edit" && + resource?.domainId && + httpConfigFullDomain && + form.watch("ssl") && ( +
+ + {t("certificateStatus")}: + + - - - )} - /> +
+ )} + ) : (
diff --git a/src/components/ResourceInfoBox.tsx b/src/components/ResourceInfoBox.tsx index 8006612a9..ad3cb5f34 100644 --- a/src/components/ResourceInfoBox.tsx +++ b/src/components/ResourceInfoBox.tsx @@ -30,7 +30,7 @@ export default function ResourceInfoBox({}: ResourceInfoBoxType) { {/* 4 cols because of the certs */} {t("identifier")} @@ -43,7 +43,10 @@ export default function ResourceInfoBox({}: ResourceInfoBoxType) { URL - + @@ -133,8 +136,7 @@ export default function ResourceInfoBox({}: ResourceInfoBoxType) { {/* Certificate Status Column */} {resource.http && resource.domainId && - resource.fullDomain && - env.flags.usePangolinDns && ( + resource.fullDomain && ( {t("certificateStatus", {