mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
PM-4878: Add passkey information to items when signing in (#9835)
* Added username to subtitle * Added subName to cipher * Moved subName to component * Update apps/browser/src/vault/popup/components/fido2/fido2-cipher-row.component.ts Co-authored-by: SmithThe4th <gsmith@bitwarden.com> * Fixed double code and added comment * Added changeDetection: ChangeDetectionStrategy.OnPush as per review --------- Co-authored-by: SmithThe4th <gsmith@bitwarden.com>
This commit is contained in:
@@ -40,6 +40,11 @@ export class LoginView extends ItemView {
|
||||
}
|
||||
|
||||
get subTitle(): string {
|
||||
// if there's a passkey available, use that as a fallback
|
||||
if (Utils.isNullOrEmpty(this.username) && this.fido2Credentials?.length > 0) {
|
||||
return this.fido2Credentials[0].userName;
|
||||
}
|
||||
|
||||
return this.username;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user