1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-12 14:34:02 +00:00

Updates to remove the userVerificationPromptService

This commit is contained in:
CarleyDiaz-Bitwarden
2022-06-27 10:52:55 -04:00
parent ee120a0171
commit 20c556890c
10 changed files with 43 additions and 53 deletions

View File

@@ -19,7 +19,6 @@ import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUti
import { PolicyService } from "@bitwarden/common/abstractions/policy.service";
import { StateService } from "@bitwarden/common/abstractions/state.service";
import { UserVerificationService } from "@bitwarden/common/abstractions/userVerification.service";
import { UserVerificationPromptService } from "@bitwarden/common/abstractions/userVerificationPrompt.service";
import { EncryptedExportType } from "@bitwarden/common/enums/EncryptedExportType";
import { EventType } from "@bitwarden/common/enums/eventType";
import { PolicyType } from "@bitwarden/common/enums/policyType";
@@ -64,7 +63,6 @@ export class ExportComponent implements OnInit {
protected modalService: ModalService,
protected apiService: ApiService,
protected stateService: StateService,
protected userVerificationPromptService: UserVerificationPromptService,
protected modalConfig: ModalConfig
) {}
@@ -176,7 +174,9 @@ export class ExportComponent implements OnInit {
}
protected getExportData() {
return this.exportService.getExport(this.format, null, this.encryptionPassword);
return (this.fileEncryptionType != 1 && this.password == undefined) || this.password == ""
? this.exportService.getExport(this.format, null)
: this.exportService.getPasswordProtectedExport(this.password);
}
protected getFileName(prefix?: string) {