mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-28 03:32:20 +00:00
Hide the destination and the alias
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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: "#" }])
|
||||
]}
|
||||
>
|
||||
<div className="space-y-4 mt-4 p-1">
|
||||
@@ -996,6 +996,7 @@ export function InternalResourceForm({
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
{sshServerMode !== "native" && (
|
||||
<div
|
||||
className={cn(
|
||||
mode === "cidr" && "col-span-1",
|
||||
@@ -1028,7 +1029,9 @@ export function InternalResourceForm({
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
{(mode === "host" || mode === "ssh") && (
|
||||
)}
|
||||
{(mode === "host" || mode === "ssh") &&
|
||||
sshServerMode !== "native" && (
|
||||
<div className="min-w-0">
|
||||
<FormField
|
||||
control={form.control}
|
||||
|
||||
Reference in New Issue
Block a user