Show the cert status on the frontend

This commit is contained in:
Owen
2026-08-14 17:08:43 -04:00
parent 780906a232
commit 52f5ad6523
5 changed files with 3 additions and 8 deletions
+1 -1
View File
@@ -399,7 +399,7 @@ function AuthPageSettings({
</div> </div>
)} )}
{build !== "oss" && (build === "enterprise" || {(build === "enterprise" ||
!isPaidUser( !isPaidUser(
tierMatrix.loginPageDomain tierMatrix.loginPageDomain
)) && )) &&
+1 -3
View File
@@ -18,7 +18,6 @@ import {
type LauncherAccessFields type LauncherAccessFields
} from "@app/lib/launcherResourceAccess"; } from "@app/lib/launcherResourceAccess";
import type { PrivateResourceMode } from "@app/lib/privateResourceForm"; import type { PrivateResourceMode } from "@app/lib/privateResourceForm";
import { build } from "@server/build";
import { useTranslations } from "next-intl"; import { useTranslations } from "next-intl";
type SiteResourceInfoInput = { type SiteResourceInfoInput = {
@@ -121,8 +120,7 @@ export function PrivateResourceInfoSections({
(siteResource.mode === "http" || siteResource.mode === "inference") && (siteResource.mode === "http" || siteResource.mode === "inference") &&
siteResource.ssl && siteResource.ssl &&
siteResource.domainId && siteResource.domainId &&
siteResource.fullDomain && siteResource.fullDomain
build != "oss"
); );
const showPortRestrictions = const showPortRestrictions =
isPanel && isPanel &&
-1
View File
@@ -429,7 +429,6 @@ export default function PrivateResourcesTable({
const fullDomain = resourceRow.fullDomain; const fullDomain = resourceRow.fullDomain;
const url = `${resourceRow.ssl ? "https" : "http"}://${fullDomain}`; const url = `${resourceRow.ssl ? "https" : "http"}://${fullDomain}`;
const did = const did =
build !== "oss" &&
resourceRow.ssl && resourceRow.ssl &&
domainId != null && domainId != null &&
domainId !== "" && domainId !== "" &&
-1
View File
@@ -468,7 +468,6 @@ export default function PublicResourcesTable({
const domainId = resourceRow.domainId; const domainId = resourceRow.domainId;
const certHostname = resourceRow.fullDomain; const certHostname = resourceRow.fullDomain;
const showHttpsCertIndicator = const showHttpsCertIndicator =
build !== "oss" &&
resourceRow.ssl && resourceRow.ssl &&
certHostname != null && certHostname != null &&
certHostname !== ""; certHostname !== "";
+1 -2
View File
@@ -40,8 +40,7 @@ export default function ResourceInfoBox({}: ResourceInfoBoxType) {
const showCertificate = !!( const showCertificate = !!(
isDomainResource && isDomainResource &&
resource.domainId && resource.domainId &&
resource.fullDomain && resource.fullDomain
build != "oss"
); );
const showType = !!(isDomainResource && resource.mode); const showType = !!(isDomainResource && resource.mode);
const showAuth = resource.mode !== "inference"; const showAuth = resource.mode !== "inference";