mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Add password toggle to add-edit (#261)
This commit is contained in:
@@ -42,6 +42,7 @@ export class AddEditComponent implements OnInit {
|
||||
expirationDate: string;
|
||||
hasPassword: boolean;
|
||||
password: string;
|
||||
showPassword = false;
|
||||
formPromise: Promise<any>;
|
||||
deletePromise: Promise<any>;
|
||||
sendType = SendType;
|
||||
@@ -248,4 +249,9 @@ export class AddEditComponent implements OnInit {
|
||||
protected dateToString(d: Date) {
|
||||
return d == null ? null : this.datePipe.transform(d, 'yyyy-MM-ddTHH:mm');
|
||||
}
|
||||
|
||||
protected togglePasswordVisible() {
|
||||
this.showPassword = !this.showPassword;
|
||||
document.getElementById('password').focus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user