fix: 🐛 hides preferred clients section for linux (#3241)

This commit is contained in:
Priya Patel authored and GitHub committed 2026-04-24 10:31:42 -07:00
1 parent 2d9b9d9659
commit 923dedc9bb
3 files changed
+18 -1

No files matched your search

@@ -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,
};
}
@@ -8,4 +8,6 @@
<SettingsCard::Application @model={{@model}} @toggle={{this.toggleTheme}} />
<SettingsCard::ClientAgent @model={{@model}} />
<SettingsCard::Logs @model={{@model}} />
<SettingsCard::PreferredClients />
{{#unless @model.isLinux}}
<SettingsCard::PreferredClients />
{{/unless}}
@@ -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();
});
});