mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15: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;
|
defaultPort: number;
|
||||||
titleKey: string;
|
titleKey: string;
|
||||||
descriptionKey?: string;
|
descriptionKey?: string;
|
||||||
|
/** Added to the host editor's connection origin help while the protocol is on. */
|
||||||
|
connectionOriginNoteKey?: string;
|
||||||
icon: IconComponent;
|
icon: IconComponent;
|
||||||
order?: number;
|
order?: number;
|
||||||
/** Offer it in Quick Connect, optionally with a domain field. */
|
/** Offer it in Quick Connect, optionally with a domain field. */
|
||||||
|
|||||||
@@ -220,7 +220,8 @@
|
|||||||
"remoteDesktopNotes": "Notes",
|
"remoteDesktopNotes": "Notes",
|
||||||
"userDefaultsNote": "Settings left on their default use your Remote Desktop defaults from Settings.",
|
"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.",
|
"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": {
|
"onboarding": {
|
||||||
"feature_desktop": "Remote desktop",
|
"feature_desktop": "Remote desktop",
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ function registerHostSurfaces(app: TermixApp): void {
|
|||||||
defaultPort: DEFAULT_PORT[protocol.id],
|
defaultPort: DEFAULT_PORT[protocol.id],
|
||||||
titleKey: protocol.titleKey,
|
titleKey: protocol.titleKey,
|
||||||
descriptionKey: protocol.descriptionKey,
|
descriptionKey: protocol.descriptionKey,
|
||||||
|
connectionOriginNoteKey: "hosts.connectionOriginGuacamoleNote",
|
||||||
icon: protocol.icon,
|
icon: protocol.icon,
|
||||||
order: protocol.order,
|
order: protocol.order,
|
||||||
quickConnect: protocol.quickConnect,
|
quickConnect: protocol.quickConnect,
|
||||||
|
|||||||
@@ -284,6 +284,9 @@ export function createPluginApp(
|
|||||||
descriptionKey: protocol.descriptionKey
|
descriptionKey: protocol.descriptionKey
|
||||||
? key(protocol.descriptionKey)
|
? key(protocol.descriptionKey)
|
||||||
: undefined,
|
: undefined,
|
||||||
|
connectionOriginNoteKey: protocol.connectionOriginNoteKey
|
||||||
|
? key(protocol.connectionOriginNoteKey)
|
||||||
|
: undefined,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -737,7 +737,18 @@ export function HostEditorGeneralTab({
|
|||||||
<HostOnly>
|
<HostOnly>
|
||||||
<SettingRow
|
<SettingRow
|
||||||
label={t("hosts.connectionOrigin")}
|
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
|
<select
|
||||||
className="flex h-7 border border-border bg-background px-2 py-0 text-xs outline-none focus:ring-1 focus:ring-ring"
|
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;
|
defaultPort: number;
|
||||||
titleKey: string;
|
titleKey: string;
|
||||||
descriptionKey?: string;
|
descriptionKey?: string;
|
||||||
|
connectionOriginNoteKey?: string;
|
||||||
icon: Icon;
|
icon: Icon;
|
||||||
order?: number;
|
order?: number;
|
||||||
/** Offer it in Quick Connect, optionally with a domain field. */
|
/** Offer it in Quick Connect, optionally with a domain field. */
|
||||||
|
|||||||
Reference in new issue
Block a user