mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
35 lines
1.4 KiB
TypeScript
35 lines
1.4 KiB
TypeScript
import { Component } from '@angular/core';
|
|
import { Router } from '@angular/router';
|
|
|
|
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
|
import { LockService } from 'jslib/abstractions/lock.service';
|
|
import { MessagingService } from 'jslib/abstractions/messaging.service';
|
|
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
|
|
import { StorageService } from 'jslib/abstractions/storage.service';
|
|
import { UserService } from 'jslib/abstractions/user.service';
|
|
|
|
import { LockComponent as BaseLockComponent } from 'jslib/angular/components/lock.component';
|
|
|
|
@Component({
|
|
selector: 'app-lock',
|
|
templateUrl: 'lock.component.html',
|
|
})
|
|
export class LockComponent extends BaseLockComponent {
|
|
constructor(router: Router, i18nService: I18nService,
|
|
platformUtilsService: PlatformUtilsService, messagingService: MessagingService,
|
|
userService: UserService, cryptoService: CryptoService,
|
|
storageService: StorageService, lockService: LockService) {
|
|
super(router, i18nService, platformUtilsService, messagingService, userService, cryptoService,
|
|
storageService, lockService);
|
|
this.successRoute = '/tabs/current';
|
|
}
|
|
|
|
async ngOnInit() {
|
|
await super.ngOnInit();
|
|
window.setTimeout(() => {
|
|
document.getElementById(this.pinLock ? 'pin' : 'masterPassword').focus();
|
|
}, 100);
|
|
}
|
|
}
|