mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
initListSectionItemListeners on pass generator
This commit is contained in:
@@ -11,12 +11,10 @@ export class PasswordGeneratorController {
|
|||||||
i18n: any;
|
i18n: any;
|
||||||
|
|
||||||
constructor(private $state: any, private passwordGenerationService: any,
|
constructor(private $state: any, private passwordGenerationService: any,
|
||||||
private toastr: any, utilsService: any, private $analytics: any,
|
private toastr: any, private utilsService: any, private $analytics: any,
|
||||||
private i18nService: any) {
|
private i18nService: any, private $timeout: any) {
|
||||||
this.i18n = i18nService;
|
this.i18n = i18nService;
|
||||||
|
|
||||||
utilsService.initListSectionItemListeners($(document), angular);
|
|
||||||
|
|
||||||
passwordGenerationService.getOptions().then((options: any) => {
|
passwordGenerationService.getOptions().then((options: any) => {
|
||||||
this.options = options;
|
this.options = options;
|
||||||
this.regenerate(false);
|
this.regenerate(false);
|
||||||
@@ -40,6 +38,11 @@ export class PasswordGeneratorController {
|
|||||||
this.editState = params.editState;
|
this.editState = params.editState;
|
||||||
|
|
||||||
this.showSelect = this.addState || this.editState;
|
this.showSelect = this.addState || this.editState;
|
||||||
|
|
||||||
|
const self = this;
|
||||||
|
this.$timeout(() => {
|
||||||
|
self.utilsService.initListSectionItemListeners(document, angular);
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
sliderMoved() {
|
sliderMoved() {
|
||||||
|
|||||||
Reference in New Issue
Block a user