mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-11 23:04:59 +00:00
hide cert in public resources col on oss
This commit is contained in:
@@ -52,6 +52,7 @@ import {
|
|||||||
type ResourceSiteRow
|
type ResourceSiteRow
|
||||||
} from "@app/components/ResourceSitesStatusCell";
|
} from "@app/components/ResourceSitesStatusCell";
|
||||||
import { ResourceAccessCertIndicator } from "@app/components/ResourceAccessCertIndicator";
|
import { ResourceAccessCertIndicator } from "@app/components/ResourceAccessCertIndicator";
|
||||||
|
import { build } from "@server/build";
|
||||||
|
|
||||||
export type InternalResourceSiteRow = ResourceSiteRow;
|
export type InternalResourceSiteRow = ResourceSiteRow;
|
||||||
|
|
||||||
@@ -445,6 +446,7 @@ export default function ClientResourcesTable({
|
|||||||
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 !== "" &&
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ import { ColumnFilterButton } from "./ColumnFilterButton";
|
|||||||
import { ControlledDataTable } from "./ui/controlled-data-table";
|
import { ControlledDataTable } from "./ui/controlled-data-table";
|
||||||
import UptimeMiniBar from "./UptimeMiniBar";
|
import UptimeMiniBar from "./UptimeMiniBar";
|
||||||
import { ResourceAccessCertIndicator } from "@app/components/ResourceAccessCertIndicator";
|
import { ResourceAccessCertIndicator } from "@app/components/ResourceAccessCertIndicator";
|
||||||
|
import { build } from "@server/build";
|
||||||
|
|
||||||
export type TargetHealth = {
|
export type TargetHealth = {
|
||||||
targetId: number;
|
targetId: number;
|
||||||
@@ -554,6 +555,7 @@ export default function ProxyResourcesTable({
|
|||||||
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 !== "";
|
||||||
|
|||||||
Reference in New Issue
Block a user