From e19b6ebc827e85eedb91f8b69d528a7bfac9c579 Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 26 May 2026 20:38:04 -0700 Subject: [PATCH] Hide the destination and the alias --- messages/en-US.json | 1 - src/components/InternalResourceForm.tsx | 83 +++++++++++++------------ 2 files changed, 43 insertions(+), 41 deletions(-) diff --git a/messages/en-US.json b/messages/en-US.json index 0cf4492c0..42eeb5add 100644 --- a/messages/en-US.json +++ b/messages/en-US.json @@ -2004,7 +2004,6 @@ "sshServerDestinationDescription": "Configure the destination and port of the SSH server", "destination": "Destination", "bgTargetMultiSiteDisclaimer": "Selecting multiple sites enables resilient routing and failover for high availability.", - "sshAccess": "SSH Access", "roleAllowSsh": "Allow SSH", "roleAllowSshAllow": "Allow", "roleAllowSshDisallow": "Disallow", diff --git a/src/components/InternalResourceForm.tsx b/src/components/InternalResourceForm.tsx index 0cddfad01..f733df099 100644 --- a/src/components/InternalResourceForm.tsx +++ b/src/components/InternalResourceForm.tsx @@ -622,7 +622,7 @@ export function InternalResourceForm({ clients: [] }); setSelectedSites([]); - setSshServerMode("standard"); + setSshServerMode("native"); setTcpPortMode("all"); setUdpPortMode("all"); setTcpCustomPorts(""); @@ -784,7 +784,7 @@ export function InternalResourceForm({ }, ...(disableEnterpriseFeatures || mode !== "ssh" ? [] - : [{ title: t("sshAccess"), href: "#" }]) + : [{ title: t("sshSettings"), href: "#" }]) ]} >
@@ -996,55 +996,31 @@ export function InternalResourceForm({ />
)} -
- ( - - - {t(destinationLabelKey)} - - - - - - + {sshServerMode !== "native" && ( +
-
- {(mode === "host" || mode === "ssh") && ( -
+ > ( - {t(aliasLabelKey)} + {t(destinationLabelKey)} @@ -1054,6 +1030,33 @@ export function InternalResourceForm({ />
)} + {(mode === "host" || mode === "ssh") && + sshServerMode !== "native" && ( +
+ ( + + + {t(aliasLabelKey)} + + + + + + + )} + /> +
+ )} {mode === "http" && (