1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

toggle password on unlock page

This commit is contained in:
Kyle Spearrin
2018-02-24 13:48:55 -05:00
parent 40e135a297
commit 8e519f5518
2 changed files with 20 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ import { UserService } from 'jslib/abstractions/user.service';
})
export class LockComponent {
masterPassword: string = '';
showPassword: boolean = false;
constructor(private router: Router, private analytics: Angulartics2,
private toasterService: ToasterService, private i18nService: I18nService,
@@ -53,4 +54,10 @@ export class LockComponent {
this.messagingService.send('logout');
}
}
togglePassword() {
this.analytics.eventTrack.next({ action: 'Toggled Master Password on Unlock' });
this.showPassword = !this.showPassword;
document.getElementById('masterPassword').focus();
}
}