mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
more flex. toggle password on add/edit
This commit is contained in:
@@ -44,6 +44,7 @@ export class AddEditComponent implements OnChanges {
|
||||
editMode: boolean = false;
|
||||
cipher: CipherView;
|
||||
folders: FolderView[];
|
||||
showPassword: boolean = false;
|
||||
cipherType = CipherType;
|
||||
fieldType = FieldType;
|
||||
addFieldType: FieldType = FieldType.Text;
|
||||
@@ -182,4 +183,9 @@ export class AddEditComponent implements OnChanges {
|
||||
|
||||
this.onGeneratePassword.emit();
|
||||
}
|
||||
|
||||
togglePassword() {
|
||||
this.analytics.eventTrack.next({ action: 'Toggled Password on Edit' });
|
||||
this.showPassword = !this.showPassword;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user