mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-22 00:35:22 +00:00
Dont show link when wildcard
This commit is contained in:
@@ -55,7 +55,9 @@ export default async function ProxyResourcesPage(
|
|||||||
pagination = responseData.pagination;
|
pagination = responseData.pagination;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
const siteIdParam = parsePositiveInt(searchParams.get("siteId") ?? undefined);
|
const siteIdParam = parsePositiveInt(
|
||||||
|
searchParams.get("siteId") ?? undefined
|
||||||
|
);
|
||||||
|
|
||||||
let initialFilterSite: {
|
let initialFilterSite: {
|
||||||
siteId: number;
|
siteId: number;
|
||||||
@@ -122,6 +124,7 @@ export default async function ProxyResourcesPage(
|
|||||||
domainId: resource.domainId || undefined,
|
domainId: resource.domainId || undefined,
|
||||||
fullDomain: resource.fullDomain ?? null,
|
fullDomain: resource.fullDomain ?? null,
|
||||||
ssl: resource.ssl,
|
ssl: resource.ssl,
|
||||||
|
wildcard: resource.wildcard,
|
||||||
targets: resource.targets?.map((target) => ({
|
targets: resource.targets?.map((target) => ({
|
||||||
targetId: target.targetId,
|
targetId: target.targetId,
|
||||||
ip: target.ip,
|
ip: target.ip,
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ export type ResourceRow = {
|
|||||||
targets?: TargetHealth[];
|
targets?: TargetHealth[];
|
||||||
health?: "healthy" | "degraded" | "unhealthy" | "unknown";
|
health?: "healthy" | "degraded" | "unhealthy" | "unknown";
|
||||||
sites: ResourceSiteRow[];
|
sites: ResourceSiteRow[];
|
||||||
|
wildcard?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
function StatusIcon({
|
function StatusIcon({
|
||||||
@@ -570,10 +571,14 @@ export default function ProxyResourcesTable({
|
|||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
<div className="">
|
<div className="">
|
||||||
<CopyToClipboard
|
{!resourceRow.wildcard ? (
|
||||||
text={resourceRow.domain}
|
<CopyToClipboard
|
||||||
isLink={true}
|
text={resourceRow.domain}
|
||||||
/>
|
isLink={true}
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
|
<span>{resourceRow.domain}</span>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user