mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
initListSectionItemListeners on lock page
This commit is contained in:
parent
173ee67466
commit
984bd27422
@ -1,19 +1,24 @@
|
|||||||
|
import * as angular from 'angular';
|
||||||
import * as template from './lock.component.html';
|
import * as template from './lock.component.html';
|
||||||
|
|
||||||
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
import { CryptoService } from '../../../services/abstractions/crypto.service';
|
||||||
|
import { UtilsService } from '../../../services/abstractions/utils.service';
|
||||||
|
|
||||||
class LockController {
|
class LockController {
|
||||||
i18n: any;
|
i18n: any;
|
||||||
masterPassword: string;
|
masterPassword: string;
|
||||||
|
|
||||||
constructor(public $state: any, public i18nService: any,
|
constructor(public $state: any, public i18nService: any, private $timeout: any, private utilsService: UtilsService,
|
||||||
public cryptoService: CryptoService, public toastr: any, public userService: any,
|
public cryptoService: CryptoService, public toastr: any, public userService: any,
|
||||||
public SweetAlert: any) {
|
public SweetAlert: any) {
|
||||||
this.i18n = i18nService;
|
this.i18n = i18nService;
|
||||||
}
|
}
|
||||||
|
|
||||||
$onInit() {
|
$onInit() {
|
||||||
document.getElementById('master-password').focus();
|
this.$timeout(() => {
|
||||||
|
this.utilsService.initListSectionItemListeners(document, angular);
|
||||||
|
document.getElementById('master-password').focus();
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
logOut() {
|
logOut() {
|
||||||
|
Loading…
Reference in New Issue
Block a user