mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-27 23:36:39 +00:00
add niceId inside info box
This commit is contained in:
@@ -2095,5 +2095,6 @@
|
|||||||
"selectedResources": "Selected Resources",
|
"selectedResources": "Selected Resources",
|
||||||
"enableSelected": "Enable Selected",
|
"enableSelected": "Enable Selected",
|
||||||
"disableSelected": "Disable Selected",
|
"disableSelected": "Disable Selected",
|
||||||
"checkSelectedStatus": "Check Status of Selected"
|
"checkSelectedStatus": "Check Status of Selected",
|
||||||
|
"niceId": "Nice ID"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { useEnvContext } from "@app/hooks/useEnvContext";
|
|||||||
|
|
||||||
type SiteInfoCardProps = {};
|
type SiteInfoCardProps = {};
|
||||||
|
|
||||||
export default function SiteInfoCard({}: SiteInfoCardProps) {
|
export default function SiteInfoCard({ }: SiteInfoCardProps) {
|
||||||
const { site, updateSite } = useSiteContext();
|
const { site, updateSite } = useSiteContext();
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
const { env } = useEnvContext();
|
const { env } = useEnvContext();
|
||||||
@@ -34,7 +34,15 @@ export default function SiteInfoCard({}: SiteInfoCardProps) {
|
|||||||
return (
|
return (
|
||||||
<Alert>
|
<Alert>
|
||||||
<AlertDescription>
|
<AlertDescription>
|
||||||
<InfoSections cols={env.flags.enableClients ? 3 : 2}>
|
<InfoSections cols={env.flags.enableClients ? 4 : 3}>
|
||||||
|
<InfoSection>
|
||||||
|
<InfoSectionTitle>
|
||||||
|
{t("niceId")}
|
||||||
|
</InfoSectionTitle>
|
||||||
|
<InfoSectionContent>
|
||||||
|
{site.niceId}
|
||||||
|
</InfoSectionContent>
|
||||||
|
</InfoSection>
|
||||||
{(site.type == "newt" || site.type == "wireguard") && (
|
{(site.type == "newt" || site.type == "wireguard") && (
|
||||||
<>
|
<>
|
||||||
<InfoSection>
|
<InfoSection>
|
||||||
|
|||||||
Reference in New Issue
Block a user