Skip to content

Commit

Permalink
fix: icons in tray menu now reflect status of home page, user icon no…
Browse files Browse the repository at this point in the history
…w is same gray as other icons
  • Loading branch information
urz9999 committed Apr 22, 2021
1 parent 50ec541 commit 49a23aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/shared/tray-menu/tray-menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class TrayMenuComponent extends AntiMemLeak implements OnInit {

switch (session.account.type) {
case AccountType.AWS_PLAIN_USER:
icon = (session.active && !session.loading) ? __dirname + `/assets/images/${iconValue}-online.png` : __dirname + `/assets/images/${iconValue}-offline.png`;
icon = (session.active) ? __dirname + `/assets/images/${iconValue}-online.png` : __dirname + `/assets/images/${iconValue}-offline.png`;
label = ' ' + session.account.accountName + ' - ' + (session.account as AwsPlainAccount).user;
break;
case AccountType.AWS:
Expand All @@ -64,7 +64,7 @@ export class TrayMenuComponent extends AntiMemLeak implements OnInit {
break;

case AccountType.AZURE:
icon = (session.active && !session.loading) ? __dirname + `/assets/images/icon-online-azure.png` : __dirname + `/assets/images/icon-offline.png`;
icon = (session.active) ? __dirname + `/assets/images/icon-online-azure.png` : __dirname + `/assets/images/icon-offline.png`;
label = ' ' + session.account.accountName;
}
voices.push(
Expand Down
Binary file modified src/assets/images/user-offline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 49a23aa

Please sign in to comment.