Add type CipherView for AutoFill functionality

This commit is contained in:
Daniel James Smith 2021-10-18 15:32:38 +02:00
parent 92459c6098
commit 4b49b1fcc0
No known key found for this signature in database
GPG Key ID: 03E4BD365FF06726
2 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,7 @@ import { TotpService } from 'jslib-common/abstractions/totp.service';
import { VaultTimeoutService } from 'jslib-common/abstractions/vaultTimeout.service';
import { EventType } from 'jslib-common/enums/eventType';
import { CipherView } from 'jslib-common/models/view/cipherView';
export default class ContextMenusBackground {
private contextMenus: any;
@ -88,7 +89,7 @@ export default class ContextMenusBackground {
}
}
private async startAutofillPage(cipher: any) {
private async startAutofillPage(cipher: CipherView) {
this.main.loginToAutoFill = cipher;
const tab = await BrowserApi.getTabFromCurrentWindow();
if (tab == null) {

View File

@ -1,6 +1,8 @@
import { CipherRepromptType } from 'jslib-common/enums/cipherRepromptType';
import { CipherType } from 'jslib-common/enums/cipherType';
import { CipherView } from 'jslib-common/models/view/cipherView';
import { ApiService } from 'jslib-common/services/api.service';
import { AppIdService } from 'jslib-common/services/appId.service';
import { AuditService } from 'jslib-common/services/audit.service';
@ -126,7 +128,7 @@ export default class MainBackground {
onUpdatedRan: boolean;
onReplacedRan: boolean;
loginToAutoFill: any = null;
loginToAutoFill: CipherView = null;
lockedVaultPendingNotifications: { commandToRetry: any, from: string }[] = [];
private commandsBackground: CommandsBackground;