1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-19 02:51:14 +02:00

Add password toggle to add-edit (#261)

This commit is contained in:
Matt Gibson 2021-02-05 12:36:09 -06:00 committed by GitHub
parent deabffb7b0
commit 22f576ea60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}