mirror of
https://github.com/bitwarden/browser
synced 2026-02-28 10:33:31 +00:00
[PM-4054] Rename Fido2Key to Fido2Credential (#6442)
* Rename Fido2Key to Fido2Credential * Fix export * Remove unnecessary alis in export * Make test less wordly --------- Co-authored-by: gbubemismith <gsmithwalter@gmail.com>
This commit is contained in:
@@ -324,12 +324,12 @@ export class AddEditComponent implements OnInit, OnDestroy {
|
||||
: this.collections.filter((c) => (c as any).checked).map((c) => c.id);
|
||||
}
|
||||
|
||||
// Clear current Cipher Id and Fido2Key if exists to trigger "Add" cipher flow
|
||||
// Clear current Cipher Id and Fido2Credentials if exists to trigger "Add" cipher flow
|
||||
if (this.cloneMode) {
|
||||
this.cipher.id = null;
|
||||
|
||||
if (this.cipher.type === CipherType.Login && this.cipher.login.fido2Keys.length > 0) {
|
||||
this.cipher.login.fido2Keys = [];
|
||||
if (this.cipher.type === CipherType.Login && this.cipher.login.fido2Credentials.length > 0) {
|
||||
this.cipher.login.fido2Credentials = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ export class ViewComponent implements OnDestroy, OnInit {
|
||||
}
|
||||
|
||||
async clone() {
|
||||
if (this.cipher.login?.fido2Keys.length > 0) {
|
||||
if (this.cipher.login?.fido2Credentials.length > 0) {
|
||||
const confirmed = await this.dialogService.openSimpleDialog({
|
||||
title: { key: "passkeyNotCopied" },
|
||||
content: { key: "passkeyNotCopiedAlert" },
|
||||
|
||||
Reference in New Issue
Block a user