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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user