2018-06-20 22:28:56 +02:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
|
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';
|
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-10-20 18:30:04 +02:00
|
|
|
eventService: EventService, policyService: PolicyService, logService: LogService) {
|
|
|
|
super(cryptoService, i18nService, platformUtilsService, exportService, eventService,
|
|
|
|
policyService, window, logService);
|
2018-06-20 22:28:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
protected saved() {
|
|
|
|
super.saved();
|
|
|
|
this.masterPassword = null;
|
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
|
|
|
}
|
|
|
|
}
|