mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-01 18:13:49 +00:00
Adjust language
This commit is contained in:
@@ -2389,7 +2389,7 @@
|
||||
"remoteExitNodeId": "ID",
|
||||
"remoteExitNodeSecretKey": "Secret",
|
||||
"remoteExitNodeNetworkingTitle": "Network Settings",
|
||||
"remoteExitNodeNetworkingDescription": "Configure how this remote exit node routes traffic and which sites prefer to connect through it.",
|
||||
"remoteExitNodeNetworkingDescription": "Configure how this remote exit node routes traffic and which sites prefer to connect through it. Advanced features to be used with backhaul networking configurations.",
|
||||
"remoteExitNodeNetworkingSave": "Save Settings",
|
||||
"remoteExitNodeNetworkingSaveSuccessTitle": "Network settings saved",
|
||||
"remoteExitNodeNetworkingSaveSuccessDescription": "Network settings have been updated successfully.",
|
||||
|
||||
@@ -34,13 +34,13 @@ export default async function SettingsLayout(props: SettingsLayoutProps) {
|
||||
const t = await getTranslations();
|
||||
|
||||
const navItems = [
|
||||
{
|
||||
title: "Networking",
|
||||
href: "/{orgId}/settings/remote-exit-nodes/{remoteExitNodeId}/networking"
|
||||
},
|
||||
{
|
||||
title: t("credentials"),
|
||||
href: "/{orgId}/settings/remote-exit-nodes/{remoteExitNodeId}/credentials"
|
||||
},
|
||||
{
|
||||
title: "Networking",
|
||||
href: "/{orgId}/settings/remote-exit-nodes/{remoteExitNodeId}/networking"
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -143,9 +143,7 @@ export default function NetworkingPage() {
|
||||
setSaving(true);
|
||||
try {
|
||||
await Promise.all([
|
||||
api.post<
|
||||
AxiosResponse<SetRemoteExitNodeResourcesResponse>
|
||||
>(
|
||||
api.post<AxiosResponse<SetRemoteExitNodeResourcesResponse>>(
|
||||
`/org/${orgId}/remote-exit-node/${remoteExitNode.remoteExitNodeId}/resources`,
|
||||
{ destinations: subnets.map((s) => s.text) }
|
||||
),
|
||||
@@ -158,9 +156,7 @@ export default function NetworkingPage() {
|
||||
]);
|
||||
toast({
|
||||
title: t("remoteExitNodeNetworkingSaveSuccessTitle"),
|
||||
description: t(
|
||||
"remoteExitNodeNetworkingSaveSuccessDescription"
|
||||
)
|
||||
description: t("remoteExitNodeNetworkingSaveSuccessDescription")
|
||||
});
|
||||
} catch (error) {
|
||||
toast({
|
||||
@@ -184,6 +180,15 @@ export default function NetworkingPage() {
|
||||
</SettingsSectionTitle>
|
||||
<SettingsSectionDescription>
|
||||
{t("remoteExitNodeNetworkingDescription")}
|
||||
<a
|
||||
href="https://docs.pangolin.net/placeholder"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="text-primary hover:underline inline-flex items-center gap-1"
|
||||
>
|
||||
{t("learnMore")}
|
||||
<ExternalLink className="size-3.5 shrink-0" />
|
||||
</a>
|
||||
</SettingsSectionDescription>
|
||||
</SettingsSectionHeader>
|
||||
<SettingsSectionBody>
|
||||
@@ -221,15 +226,6 @@ export default function NetworkingPage() {
|
||||
)
|
||||
}
|
||||
)}{" "}
|
||||
<a
|
||||
href="https://docs.pangolin.net/placeholder"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="text-primary hover:underline inline-flex items-center gap-1"
|
||||
>
|
||||
{t("learnMore")}
|
||||
<ExternalLink className="size-3.5 shrink-0" />
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</SettingsFormCell>
|
||||
|
||||
Reference in New Issue
Block a user