Skip to content

Commit c1e0fc5

Browse files
committed
added alphabetical filter on first insert of sso sessions
1 parent 7d17f64 commit c1e0fc5

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

electron/dist/src/environments/environment.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

electron/dist/src/environments/environment.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/integrations/providers/aws-sso.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,9 @@ export class AwsSsoService extends NativeService {
382382
// Remove all AWS SSO old session or create a session array
383383
workspace.sessions = workspace.sessions.filter(sess => ((sess.account.type !== AccountType.AWS_SSO)));
384384
// Add new AWS SSO sessions
385-
workspace.sessions.push(...AwsSsoSessions);
385+
workspace.sessions.push(...AwsSsoSessions.sort((a, b) => {
386+
return a.account.accountName.toLowerCase().localeCompare(b.account.accountName.toLowerCase(), 'en', {sensitivity: 'base'});
387+
}));
386388
this.configurationService.updateWorkspaceSync(workspace);
387389
observable.next({});
388390
observable.complete();

0 commit comments

Comments
 (0)