mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
Open login prompt as popout when vault is locked
This commit is contained in:
@@ -16,6 +16,7 @@ import { SystemService } from 'jslib-common/abstractions/system.service';
|
||||
import { UserService } from 'jslib-common/abstractions/user.service';
|
||||
import { VaultTimeoutService } from 'jslib-common/abstractions/vaultTimeout.service';
|
||||
import { ConstantsService } from 'jslib-common/services/constants.service';
|
||||
import { PopupUtilsService } from '../popup/services/popup-utils.service';
|
||||
import { AutofillService } from '../services/abstractions/autofill.service';
|
||||
import BrowserPlatformUtilsService from '../services/browserPlatformUtils.service';
|
||||
|
||||
@@ -43,7 +44,7 @@ export default class RuntimeBackground {
|
||||
private systemService: SystemService, private vaultTimeoutService: VaultTimeoutService,
|
||||
private environmentService: EnvironmentService, private policyService: PolicyService,
|
||||
private userService: UserService, private messagingService: MessagingService,
|
||||
private folderService: FolderService) {
|
||||
private folderService: FolderService, private popupUtilsService: PopupUtilsService) {
|
||||
|
||||
// onInstalled listener must be wired up before anything else, so we do it in the ctor
|
||||
chrome.runtime.onInstalled.addListener((details: any) => {
|
||||
@@ -82,6 +83,9 @@ export default class RuntimeBackground {
|
||||
case 'openPopup':
|
||||
await this.main.openPopup();
|
||||
break;
|
||||
case 'openPopout':
|
||||
await this.popupUtilsService.popOut(window, 'popup/index.html?uilocation=popout');
|
||||
break;
|
||||
case 'showDialogResolve':
|
||||
this.platformUtilsService.resolveDialogPromise(msg.dialogId, msg.confirmed);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user