mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-07 13:08:03 +02:00
Finish adding ssh toggle
This commit is contained in:
+2
-1
@@ -3455,5 +3455,6 @@
|
|||||||
"sshErrorNoTarget": "No target specified",
|
"sshErrorNoTarget": "No target specified",
|
||||||
"sshErrorWebSocket": "WebSocket connection failed",
|
"sshErrorWebSocket": "WebSocket connection failed",
|
||||||
"sshErrorAuthFailed": "Authentication failed",
|
"sshErrorAuthFailed": "Authentication failed",
|
||||||
"sshErrorConnectionClosed": "Connection closed before authentication completed"
|
"sshErrorConnectionClosed": "Connection closed before authentication completed",
|
||||||
|
"sitePangolinSshDescription": "Allow SSH access to resources on this site. This can be changed later."
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -286,25 +286,33 @@ WantedBy=default.target`
|
|||||||
label={t("siteAcceptClientConnections")}
|
label={t("siteAcceptClientConnections")}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{supportsSshOption && (
|
|
||||||
<div className="flex items-center space-x-2 mb-2">
|
|
||||||
<CheckboxWithLabel
|
|
||||||
id="allowPangolinSsh"
|
|
||||||
checked={allowPangolinSsh}
|
|
||||||
onCheckedChange={(checked) => {
|
|
||||||
const value = checked as boolean;
|
|
||||||
setAllowPangolinSsh(value);
|
|
||||||
}}
|
|
||||||
label="Allow Pangolin SSH"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
<p
|
<p
|
||||||
id="acceptClients-desc"
|
id="acceptClients-desc"
|
||||||
className="text-sm text-muted-foreground"
|
className="text-sm text-muted-foreground"
|
||||||
>
|
>
|
||||||
{t("siteAcceptClientConnectionsDescription")}
|
{t("siteAcceptClientConnectionsDescription")}
|
||||||
</p>
|
</p>
|
||||||
|
{supportsSshOption && (
|
||||||
|
<>
|
||||||
|
<div className="flex items-center space-x-2 mb-2 mt-2">
|
||||||
|
<CheckboxWithLabel
|
||||||
|
id="allowPangolinSsh"
|
||||||
|
checked={allowPangolinSsh}
|
||||||
|
onCheckedChange={(checked) => {
|
||||||
|
const value = checked as boolean;
|
||||||
|
setAllowPangolinSsh(value);
|
||||||
|
}}
|
||||||
|
label="Allow Pangolin SSH"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<p
|
||||||
|
id="allowPangolinSsh-desc"
|
||||||
|
className="text-sm text-muted-foreground"
|
||||||
|
>
|
||||||
|
{t("sitePangolinSshDescription")}
|
||||||
|
</p>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="pt-4">
|
<div className="pt-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user