mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-07 09:31:31 +01:00
redirect to lock screen on locked event
This commit is contained in:
parent
eb07b1b080
commit
7a161fa028
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit d8f9177c03549667cf6d1e5f30536d010acc7b7d
|
||||
Subproject commit fc1a73c9f2ef2c18f05dfebb5cf80ce84520d118
|
@ -151,7 +151,7 @@ export default class MainBackground {
|
||||
this.searchService = new SearchService(this.cipherService, this.platformUtilsService);
|
||||
this.lockService = new LockService(this.cipherService, this.folderService, this.collectionService,
|
||||
this.cryptoService, this.platformUtilsService, this.storageService, this.messagingService,
|
||||
this.searchService, async () => {
|
||||
this.searchService, this.userService, async () => {
|
||||
if (this.notificationsService != null) {
|
||||
this.notificationsService.updateConnection(false);
|
||||
}
|
||||
|
@ -101,6 +101,9 @@ export class AppComponent implements OnInit {
|
||||
});
|
||||
} else if (msg.command === 'locked') {
|
||||
this.stateService.purge();
|
||||
this.ngZone.run(() => {
|
||||
this.router.navigate(['lock']);
|
||||
});
|
||||
} else if (msg.command === 'showDialog') {
|
||||
await this.showDialog(msg);
|
||||
} else if (msg.command === 'showToast') {
|
||||
|
@ -167,7 +167,6 @@ export class SettingsComponent implements OnInit {
|
||||
async lock() {
|
||||
this.analytics.eventTrack.next({ action: 'Lock Now' });
|
||||
await this.lockService.lock(true);
|
||||
this.router.navigate(['lock']);
|
||||
}
|
||||
|
||||
async logOut() {
|
||||
|
Loading…
Reference in New Issue
Block a user