1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

[PM-5884] Allow deletion of passkey from edit view - clients (#8500)

* add remove button for passkeys during edit

* added live region to announce when a passkey is removed

* removed announce passkey removed by SR

* removed unused variable
This commit is contained in:
SmithThe4th
2024-03-29 10:06:50 -04:00
committed by GitHub
parent 07c172d3a3
commit 3a830789ba
6 changed files with 60 additions and 10 deletions

View File

@@ -402,6 +402,14 @@ export class AddEditComponent implements OnInit, OnDestroy {
}
}
removePasskey() {
if (this.cipher.type !== CipherType.Login || this.cipher.login.fido2Credentials == null) {
return;
}
this.cipher.login.fido2Credentials = null;
}
onCardNumberChange(): void {
this.cipher.card.brand = CardView.getCardBrandByPatterns(this.cipher.card.number);
}