1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

password generator options toggle

This commit is contained in:
Kyle Spearrin
2018-01-31 21:13:42 -05:00
parent e52b104a72
commit 06106e1775
5 changed files with 24 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ export class PasswordGeneratorComponent implements OnInit {
options: any = {};
password: string = '-';
showOptions = false;
constructor(private passwordGenerationService: PasswordGenerationService, private analytics: Angulartics2,
private utilsService: UtilsService) { }
@@ -89,4 +90,8 @@ export class PasswordGeneratorComponent implements OnInit {
this.analytics.eventTrack.next({ action: 'Selected Generated Password' });
this.onSelected.emit(this.password);
}
toggleOptions() {
this.showOptions = !this.showOptions;
}
}