mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 09:43:23 +00:00
[Account switching] Design changes (#1240)
* Various design changes to the account switcher * Hide serverUrl on cloud accounts * Display account limit reached instead of add account
This commit is contained in:
committed by
GitHub
parent
b796fe094f
commit
12bb8b060c
@@ -60,6 +60,14 @@ export class AccountSwitcherComponent implements OnInit {
|
||||
return !Utils.isNullOrWhitespace(this.activeAccountEmail);
|
||||
}
|
||||
|
||||
get numberOfAccounts() {
|
||||
if (this.accounts == null) {
|
||||
this.isOpen = false;
|
||||
return 0;
|
||||
}
|
||||
return Object.keys(this.accounts).length;
|
||||
}
|
||||
|
||||
constructor(
|
||||
private stateService: StateService,
|
||||
private vaultTimeoutService: VaultTimeoutService,
|
||||
|
||||
Reference in New Issue
Block a user