From 923dedc9bb88bdba6ad2edeff9816d0ca8531400 Mon Sep 17 00:00:00 2001 From: Priya Patel Date: Fri, 24 Apr 2026 10:31:42 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20hides=20preferred=20clien?= =?UTF-8?q?ts=20section=20for=20linux=20(#3241)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../routes/scopes/scope/projects/settings/index.js | 2 ++ .../scopes/scope/projects/settings/index.hbs | 4 +++- .../acceptance/projects/settings/index-test.js | 13 +++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ui/desktop/app/routes/scopes/scope/projects/settings/index.js b/ui/desktop/app/routes/scopes/scope/projects/settings/index.js index 400a51677..59d2b3a80 100644 --- a/ui/desktop/app/routes/scopes/scope/projects/settings/index.js +++ b/ui/desktop/app/routes/scopes/scope/projects/settings/index.js @@ -23,6 +23,7 @@ export default class ScopesScopeProjectsSettingsIndexRoute extends Route { const logLevel = await window.desktop.logging.getLogLevel(); const logPath = await window.desktop.logging.getLogPath(); const serverInformation = this.clusterUrl.rendererClusterUrl; + const { isLinux } = await window.desktop.system.checkOS(); return { desktopVersion: `v${desktopVersion}`, @@ -32,6 +33,7 @@ export default class ScopesScopeProjectsSettingsIndexRoute extends Route { logLevel, logPath, serverInformation, + isLinux, }; } diff --git a/ui/desktop/app/templates/scopes/scope/projects/settings/index.hbs b/ui/desktop/app/templates/scopes/scope/projects/settings/index.hbs index 0f661c6b5..7ccb91180 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/settings/index.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/settings/index.hbs @@ -8,4 +8,6 @@ - \ No newline at end of file +{{#unless @model.isLinux}} + +{{/unless}} \ No newline at end of file diff --git a/ui/desktop/tests/acceptance/projects/settings/index-test.js b/ui/desktop/tests/acceptance/projects/settings/index-test.js index 28bd7d033..8fd3f4bc4 100644 --- a/ui/desktop/tests/acceptance/projects/settings/index-test.js +++ b/ui/desktop/tests/acceptance/projects/settings/index-test.js @@ -336,4 +336,17 @@ module('Acceptance | projects | settings | index', function (hooks) { ); assert.strictEqual(rdpService.preferredRdpClient, RDP_CLIENT_NONE); }); + + test('preferred clients is hidden for Linux', async function (assert) { + window.desktop.system.checkOS.resolves({ + isWindows: false, + isMac: false, + isLinux: true, + }); + + await visit(urls.settings); + + assert.dom(RDP_PREFERRED_CLIENT).doesNotExist(); + assert.dom(RDP_RECOMMENDED_CLIENT).doesNotExist(); + }); });