1
0
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:
Kyle Spearrin 2017-11-20 09:01:48 -05:00
parent 173ee67466
commit 984bd27422

View File

@ -1,19 +1,24 @@
import * as angular from 'angular';
import * as template from './lock.component.html';
import { CryptoService } from '../../../services/abstractions/crypto.service';
import { UtilsService } from '../../../services/abstractions/utils.service';
class LockController {
i18n: any;
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 SweetAlert: any) {
this.i18n = i18nService;
}
$onInit() {
this.$timeout(() => {
this.utilsService.initListSectionItemListeners(document, angular);
document.getElementById('master-password').focus();
}, 500);
}
logOut() {