mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
unlock message improvements
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
import {
|
||||
Component,
|
||||
OnInit,
|
||||
} from '@angular/core';
|
||||
import { Component } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
import { CryptoService } from 'jslib/abstractions/crypto.service';
|
||||
@@ -16,7 +13,7 @@ import { LockComponent as BaseLockComponent } from 'jslib/angular/components/loc
|
||||
selector: 'app-lock',
|
||||
templateUrl: 'lock.component.html',
|
||||
})
|
||||
export class LockComponent extends BaseLockComponent implements OnInit {
|
||||
export class LockComponent extends BaseLockComponent {
|
||||
constructor(router: Router, i18nService: I18nService,
|
||||
platformUtilsService: PlatformUtilsService, messagingService: MessagingService,
|
||||
userService: UserService, cryptoService: CryptoService) {
|
||||
@@ -24,7 +21,8 @@ export class LockComponent extends BaseLockComponent implements OnInit {
|
||||
this.successRoute = '/tabs/current';
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
async ngOnInit() {
|
||||
await super.ngOnInit();
|
||||
window.setTimeout(() => {
|
||||
document.getElementById('masterPassword').focus();
|
||||
}, 100);
|
||||
|
||||
Reference in New Issue
Block a user