-
Notifications
You must be signed in to change notification settings - Fork 392
[PS-74] Fix user authentication state checks #1464
Conversation
| class="bwi bwi-lock bwi-2x text-muted" | ||
| class="bwi bwi-2x text-muted" | ||
| [ngClass]=" | ||
| a.value.profile.authenticationStatus == authStatus.Unlocked ? 'bwi-unlock' : 'bwi-lock' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No real change here, I just find ngClass to be more succinct when swapping between icons.
| <button | ||
| *ngFor="let a of accounts | keyvalue" | ||
| class="account" | ||
| [ngClass]="{ active: a.value.profile.authenticationStatus == 'active' }" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class will never be applied because the active account is excluded from the switcherAccount list. Also doesn't appear to have any scss styling associated with it.
Once we remove this, we don't need the authenticationStatus.active value at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, this was a design change and this never got removed.
Type of change
Objective
Consequential changes from bitwarden/jslib#721. Depends on that being merged.
Code changes
authService.authStatus()methodaccount.profile.activeproperty which was unusedAuthenticationStatusenum being number instead of string valuesScreenshots
Testing requirements
Before you submit
npm run lint) (required)