2018-06-20 22:28:56 +02:00
|
|
|
import { Component } from "@angular/core";
|
2021-11-09 19:24:26 +01:00
|
|
|
import { FormBuilder } from "@angular/forms";
|
2018-06-20 22:28:56 +02:00
|
|
|
|
2021-06-07 20:13:58 +02:00
|
|
|
import { CryptoService } from "jslib-common/abstractions/crypto.service";
|
|
|
|
import { EventService } from "jslib-common/abstractions/event.service";
|
|
|
|
import { ExportService } from "jslib-common/abstractions/export.service";
|
|
|
|
import { I18nService } from "jslib-common/abstractions/i18n.service";
|
2021-10-20 18:30:04 +02:00
|
|
|
import { LogService } from "jslib-common/abstractions/log.service";
|
2021-06-07 20:13:58 +02:00
|
|
|
import { PlatformUtilsService } from "jslib-common/abstractions/platformUtils.service";
|
2021-10-20 18:30:04 +02:00
|
|
|
import { PolicyService } from "jslib-common/abstractions/policy.service";
|
2021-11-09 19:24:26 +01:00
|
|
|
import { UserVerificationService } from "jslib-common/abstractions/userVerification.service";
|
2018-06-20 22:28:56 +02:00
|
|
|
|
2021-06-07 20:13:58 +02:00
|
|
|
import { ExportComponent as BaseExportComponent } from "jslib-angular/components/export.component";
|
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 {
|
2020-12-04 15:58:26 +01:00
|
|
|
organizationId: string;
|
|
|
|
|
2018-10-03 16:33:04 +02:00
|
|
|
constructor(
|
|
|
|
cryptoService: CryptoService,
|
|
|
|
i18nService: I18nService,
|
2019-07-12 23:11:50 +02:00
|
|
|
platformUtilsService: PlatformUtilsService,
|
|
|
|
exportService: ExportService,
|
2021-11-09 19:24:26 +01:00
|
|
|
eventService: EventService,
|
|
|
|
policyService: PolicyService,
|
|
|
|
logService: LogService,
|
|
|
|
userVerificationService: UserVerificationService,
|
2021-12-31 16:06:07 +01:00
|
|
|
formBuilder: FormBuilder
|
2021-11-09 19:24:26 +01:00
|
|
|
) {
|
2021-10-20 18:30:04 +02:00
|
|
|
super(
|
|
|
|
cryptoService,
|
|
|
|
i18nService,
|
|
|
|
platformUtilsService,
|
|
|
|
exportService,
|
|
|
|
eventService,
|
2021-11-09 19:24:26 +01:00
|
|
|
policyService,
|
|
|
|
window,
|
|
|
|
logService,
|
|
|
|
userVerificationService,
|
2021-12-31 16:06:07 +01:00
|
|
|
formBuilder
|
2021-11-09 19:24:26 +01:00
|
|
|
);
|
2018-06-20 22:28:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
protected saved() {
|
|
|
|
super.saved();
|
2018-10-03 16:33:04 +02:00
|
|
|
this.platformUtilsService.showToast("success", null, this.i18nService.t("exportSuccess"));
|
2018-06-20 22:28:56 +02:00
|
|
|
}
|
|
|
|
}
|