Skip to content

Commit

Permalink
added alphabetical filter on first insert of sso sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
urz9999 committed Jan 25, 2021
1 parent 7d17f64 commit c1e0fc5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion electron/dist/src/environments/environment.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion electron/dist/src/environments/environment.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/app/integrations/providers/aws-sso.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@ export class AwsSsoService extends NativeService {
// Remove all AWS SSO old session or create a session array
workspace.sessions = workspace.sessions.filter(sess => ((sess.account.type !== AccountType.AWS_SSO)));
// Add new AWS SSO sessions
workspace.sessions.push(...AwsSsoSessions);
workspace.sessions.push(...AwsSsoSessions.sort((a, b) => {
return a.account.accountName.toLowerCase().localeCompare(b.account.accountName.toLowerCase(), 'en', {sensitivity: 'base'});
}));
this.configurationService.updateWorkspaceSync(workspace);
observable.next({});
observable.complete();
Expand Down

0 comments on commit c1e0fc5

Please sign in to comment.