diff --git a/src/angular/components/add-edit.component.ts b/src/angular/components/add-edit.component.ts index 5c69e331dc..3034c377f2 100644 --- a/src/angular/components/add-edit.component.ts +++ b/src/angular/components/add-edit.component.ts @@ -46,6 +46,7 @@ export class AddEditComponent { deletePromise: Promise; checkPasswordPromise: Promise; showPassword: boolean = false; + showCardCode: boolean = false; cipherType = CipherType; fieldType = FieldType; addFieldType: FieldType = FieldType.Text; @@ -262,6 +263,12 @@ export class AddEditComponent { document.getElementById('loginPassword').focus(); } + toggleCardCode() { + this.analytics.eventTrack.next({ action: 'Toggled CardCode on Edit' }); + this.showCardCode = !this.showCardCode; + document.getElementById('cardCode').focus(); + } + toggleFieldValue(field: FieldView) { const f = (field as any); f.showValue = !f.showValue;