mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
33 lines
1.4 KiB
TypeScript
33 lines
1.4 KiB
TypeScript
import { Component } from '@angular/core';
|
|
|
|
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';
|
|
import { LogService } from 'jslib-common/abstractions/log.service';
|
|
import { PlatformUtilsService } from 'jslib-common/abstractions/platformUtils.service';
|
|
import { PolicyService } from 'jslib-common/abstractions/policy.service';
|
|
|
|
import { ExportComponent as BaseExportComponent } from 'jslib-angular/components/export.component';
|
|
|
|
@Component({
|
|
selector: 'app-export',
|
|
templateUrl: 'export.component.html',
|
|
})
|
|
export class ExportComponent extends BaseExportComponent {
|
|
organizationId: string;
|
|
|
|
constructor(cryptoService: CryptoService, i18nService: I18nService,
|
|
platformUtilsService: PlatformUtilsService, exportService: ExportService,
|
|
eventService: EventService, policyService: PolicyService, logService: LogService) {
|
|
super(cryptoService, i18nService, platformUtilsService, exportService, eventService,
|
|
policyService, window, logService);
|
|
}
|
|
|
|
protected saved() {
|
|
super.saved();
|
|
this.masterPassword = null;
|
|
this.platformUtilsService.showToast('success', null, this.i18nService.t('exportSuccess'));
|
|
}
|
|
}
|