mirror of
https://github.com/bitwarden/desktop
synced 2026-02-21 11:53:25 +00:00
[chore] Update account refrences to match recent jslib restructuring
This commit is contained in:
@@ -354,14 +354,14 @@ export class AppComponent implements OnInit {
|
||||
const accounts: { [userId: string]: any } = {};
|
||||
for (const i in stateAccounts) {
|
||||
if (i != null) {
|
||||
const userId = stateAccounts[i].userId;
|
||||
const userId = stateAccounts[i].profile.userId;
|
||||
accounts[userId] = {
|
||||
isAuthenticated: await this.stateService.getIsAuthenticated({
|
||||
userId: userId,
|
||||
}),
|
||||
isLocked: await this.vaultTimeoutService.isLocked(userId),
|
||||
email: stateAccounts[i].email,
|
||||
userId: stateAccounts[i].userId,
|
||||
email: stateAccounts[i].profile.email,
|
||||
userId: stateAccounts[i].profile.userId,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
<ng-template cdkConnectedOverlay [cdkConnectedOverlayOrigin]="trigger" [cdkConnectedOverlayOpen]="isOpen" cdkConnectedOverlayMinWidth="250px">
|
||||
<div class="account-switcher-dropdown" [@transformPanel]="'open'">
|
||||
<div class="accounts">
|
||||
<a *ngFor="let a of accounts | keyvalue" class="account" [ngClass]="{'active': a.value.authenticationStatus == 'active'}"
|
||||
href="#" appStopClick (click)="switch(a.value.userId)">
|
||||
<span class="email">{{a.value.email}}</span>
|
||||
<span class="server">{{a.value.serverUrl}}</span>
|
||||
<span class="status">{{a.value.authenticationStatus}}</span>
|
||||
<a *ngFor="let a of accounts | keyvalue" class="account" [ngClass]="{'active': a.value.profile.authenticationStatus == 'active'}"
|
||||
href="#" appStopClick (click)="switch(a.key)">
|
||||
<span class="email">{{a.value.profile.email}}</span>
|
||||
<span class="server">{{a.value.settings.serverUrl}}</span>
|
||||
<span class="status">{{a.value.profile.authenticationStatus}}</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="border"></div>
|
||||
|
||||
Reference in New Issue
Block a user