Add type CipherView for AutoFill functionality
This commit is contained in:
parent
92459c6098
commit
4b49b1fcc0
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue