mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
fix: show the remote desktop note under connection origin again
This commit is contained in:
1 parent
9ce63d65d3
commit
d8fb2e75af
6 files changed
+21
-2
No files matched your search
@@ -492,6 +492,8 @@ export interface HostProtocolContribution {
|
||||
defaultPort: number;
|
||||
titleKey: string;
|
||||
descriptionKey?: string;
|
||||
/** Added to the host editor's connection origin help while the protocol is on. */
|
||||
connectionOriginNoteKey?: string;
|
||||
icon: IconComponent;
|
||||
order?: number;
|
||||
/** Offer it in Quick Connect, optionally with a domain field. */
|
||||
|
||||
@@ -220,7 +220,8 @@
|
||||
"remoteDesktopNotes": "Notes",
|
||||
"userDefaultsNote": "Settings left on their default use your Remote Desktop defaults from Settings.",
|
||||
"connectionOriginNote": "On the desktop app, RDP, VNC and Telnet use the remote server unless the host is set to This device, which needs a guacd this machine can reach. Set one in the Remote Desktop settings, or per host under guacd Proxy.",
|
||||
"docsLink": "View docs"
|
||||
"docsLink": "View docs",
|
||||
"connectionOriginGuacamoleNote": "RDP, VNC and Telnet use the remote server unless you pick \"This device\", which needs a guacd this machine can reach. Set one in the guacd URL setting, or per host under guacd Proxy."
|
||||
},
|
||||
"onboarding": {
|
||||
"feature_desktop": "Remote desktop",
|
||||
|
||||
@@ -328,6 +328,7 @@ function registerHostSurfaces(app: TermixApp): void {
|
||||
defaultPort: DEFAULT_PORT[protocol.id],
|
||||
titleKey: protocol.titleKey,
|
||||
descriptionKey: protocol.descriptionKey,
|
||||
connectionOriginNoteKey: "hosts.connectionOriginGuacamoleNote",
|
||||
icon: protocol.icon,
|
||||
order: protocol.order,
|
||||
quickConnect: protocol.quickConnect,
|
||||
|
||||
@@ -284,6 +284,9 @@ export function createPluginApp(
|
||||
descriptionKey: protocol.descriptionKey
|
||||
? key(protocol.descriptionKey)
|
||||
: undefined,
|
||||
connectionOriginNoteKey: protocol.connectionOriginNoteKey
|
||||
? key(protocol.connectionOriginNoteKey)
|
||||
: undefined,
|
||||
}),
|
||||
);
|
||||
},
|
||||
|
||||
@@ -737,7 +737,18 @@ export function HostEditorGeneralTab({
|
||||
<HostOnly>
|
||||
<SettingRow
|
||||
label={t("hosts.connectionOrigin")}
|
||||
description={t("hosts.connectionOriginDesc")}
|
||||
description={[
|
||||
t("hosts.connectionOriginDesc"),
|
||||
...new Set(
|
||||
pluginProtocols
|
||||
.filter(
|
||||
(protocol) =>
|
||||
protocols[protocol.settingKey] &&
|
||||
protocol.connectionOriginNoteKey,
|
||||
)
|
||||
.map((protocol) => t(protocol.connectionOriginNoteKey!)),
|
||||
),
|
||||
].join(" ")}
|
||||
>
|
||||
<select
|
||||
className="flex h-7 border border-border bg-background px-2 py-0 text-xs outline-none focus:ring-1 focus:ring-ring"
|
||||
|
||||
@@ -18,6 +18,7 @@ export interface HostProtocolDef {
|
||||
defaultPort: number;
|
||||
titleKey: string;
|
||||
descriptionKey?: string;
|
||||
connectionOriginNoteKey?: string;
|
||||
icon: Icon;
|
||||
order?: number;
|
||||
/** Offer it in Quick Connect, optionally with a domain field. */
|
||||
|
||||
Reference in new issue
Block a user