mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-17 22:44:42 +00:00
Show the endpoint if its there
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user