Show the endpoint if its there

This commit is contained in:
Owen
2026-04-20 15:07:26 -07:00
parent 9a6408d28c
commit 54adcd2c56
2 changed files with 15 additions and 2 deletions

View File

@@ -2917,5 +2917,6 @@
"idpUnassociateWarning": "This cannot be undone for this organization.", "idpUnassociateWarning": "This cannot be undone for this organization.",
"idpUnassociatedDescription": "Identity provider unassociated from this organization successfully", "idpUnassociatedDescription": "Identity provider unassociated from this organization successfully",
"idpUnassociateMenu": "Unassociate", "idpUnassociateMenu": "Unassociate",
"idpDeleteAllOrgsMenu": "Delete" "idpDeleteAllOrgsMenu": "Delete",
"publicIpEndpoint": "Endpoint"
} }

View File

@@ -33,7 +33,7 @@ export default function SiteInfoCard({}: SiteInfoCardProps) {
return ( return (
<Alert> <Alert>
<AlertDescription> <AlertDescription>
<InfoSections cols={3}> <InfoSections cols={site.endpoint ? 4 : 3}>
<InfoSection> <InfoSection>
<InfoSectionTitle>{t("identifier")}</InfoSectionTitle> <InfoSectionTitle>{t("identifier")}</InfoSectionTitle>
<InfoSectionContent>{site.niceId}</InfoSectionContent> <InfoSectionContent>{site.niceId}</InfoSectionContent>
@@ -68,6 +68,18 @@ export default function SiteInfoCard({}: SiteInfoCardProps) {
{getConnectionTypeString(site.type)} {getConnectionTypeString(site.type)}
</InfoSectionContent> </InfoSectionContent>
</InfoSection> </InfoSection>
{site.endpoint && (
<InfoSection>
<InfoSectionTitle>
{t("publicIpEndpoint")}
</InfoSectionTitle>
<InfoSectionContent>
{site.endpoint.includes(":")
? site.endpoint.substring(0, site.endpoint.lastIndexOf(":"))
: site.endpoint}
</InfoSectionContent>
</InfoSection>
)}
</InfoSections> </InfoSections>
</AlertDescription> </AlertDescription>
</Alert> </Alert>