1
0
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:
Oscar Hinton
2023-10-04 22:53:21 +02:00
committed by GitHub
parent a186d32314
commit 94e5117c32
27 changed files with 232 additions and 221 deletions

View File

@@ -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 = [];
}
}

View File

@@ -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" },