2018-04-19 17:17:07 +02:00
|
|
|
import {
|
|
|
|
Component,
|
|
|
|
OnInit,
|
|
|
|
} from '@angular/core';
|
2018-04-05 04:59:42 +02:00
|
|
|
import { Router } from '@angular/router';
|
|
|
|
|
|
|
|
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
|
|
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
|
|
|
import { MessagingService } from 'jslib/abstractions/messaging.service';
|
|
|
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
|
|
|
import { UserService } from 'jslib/abstractions/user.service';
|
|
|
|
|
|
|
|
import { LockComponent as BaseLockComponent } from 'jslib/angular/components/lock.component';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-lock',
|
2018-04-06 17:48:45 +02:00
|
|
|
templateUrl: 'lock.component.html',
|
2018-04-05 04:59:42 +02:00
|
|
|
})
|
2018-04-19 17:17:07 +02:00
|
|
|
export class LockComponent extends BaseLockComponent implements OnInit {
|
2018-10-03 06:21:22 +02:00
|
|
|
constructor(router: Router, i18nService: I18nService,
|
2018-04-05 04:59:42 +02:00
|
|
|
platformUtilsService: PlatformUtilsService, messagingService: MessagingService,
|
|
|
|
userService: UserService, cryptoService: CryptoService) {
|
2018-10-03 06:21:22 +02:00
|
|
|
super(router, i18nService, platformUtilsService, messagingService, userService, cryptoService);
|
2018-04-05 04:59:42 +02:00
|
|
|
this.successRoute = '/tabs/current';
|
|
|
|
}
|
2018-04-19 17:17:07 +02:00
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
window.setTimeout(() => {
|
|
|
|
document.getElementById('masterPassword').focus();
|
|
|
|
}, 100);
|
|
|
|
}
|
2018-04-05 04:59:42 +02:00
|
|
|
}
|