mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
redirect to lock screen on locked event
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: d8f9177c03...fc1a73c9f2
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user