bitwarden-estensione-browser/apps/web/src/app/tools/import-export/export.component.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.9 KiB
TypeScript
Raw Normal View History

2018-06-20 22:28:56 +02:00
import { Component } from "@angular/core";
import { FormBuilder } from "@angular/forms";
2018-06-20 22:28:56 +02:00
2022-06-14 17:10:53 +02:00
import { ExportComponent as BaseExportComponent } from "@bitwarden/angular/components/export.component";
import { CryptoService } from "@bitwarden/common/abstractions/crypto.service";
import { EventService } from "@bitwarden/common/abstractions/event.service";
import { ExportService } from "@bitwarden/common/abstractions/export.service";
import { FileDownloadService } from "@bitwarden/common/abstractions/fileDownload/fileDownload.service";
2022-06-14 17:10:53 +02:00
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
import { LogService } from "@bitwarden/common/abstractions/log.service";
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
import { PolicyService } from "@bitwarden/common/abstractions/policy.service";
import { UserVerificationService } from "@bitwarden/common/abstractions/userVerification.service";
2018-06-20 22:28:56 +02:00
2018-06-10 05:33:12 +02:00
@Component({
selector: "app-export",
templateUrl: "export.component.html",
})
2018-06-20 22:28:56 +02:00
export class ExportComponent extends BaseExportComponent {
organizationId: string;
constructor(
cryptoService: CryptoService,
i18nService: I18nService,
2019-07-12 23:11:50 +02:00
platformUtilsService: PlatformUtilsService,
exportService: ExportService,
eventService: EventService,
policyService: PolicyService,
logService: LogService,
userVerificationService: UserVerificationService,
formBuilder: FormBuilder,
fileDownloadService: FileDownloadService
) {
super(
cryptoService,
i18nService,
platformUtilsService,
exportService,
eventService,
policyService,
window,
logService,
userVerificationService,
formBuilder,
fileDownloadService
);
2018-06-20 22:28:56 +02:00
}
protected saved() {
super.saved();
this.platformUtilsService.showToast("success", null, this.i18nService.t("exportSuccess"));
2018-06-20 22:28:56 +02:00
}
}