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

31 lines
1.2 KiB
TypeScript
Raw Normal View History

2018-06-20 22:28:56 +02:00
import { ToasterService } from 'angular2-toaster';
import { Angulartics2 } from 'angulartics2';
import { Component } from '@angular/core';
import { CryptoService } from 'jslib/abstractions/crypto.service';
import { ExportService } from 'jslib/abstractions/export.service';
import { I18nService } from 'jslib/abstractions/i18n.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
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 {
constructor(analytics: Angulartics2, toasterService: ToasterService,
2018-08-14 21:14:04 +02:00
cryptoService: CryptoService, i18nService: I18nService,
platformUtilsService: PlatformUtilsService, exportService: ExportService) {
super(analytics, toasterService, cryptoService, i18nService, platformUtilsService,
2018-06-20 22:28:56 +02:00
exportService, window);
}
protected saved() {
super.saved();
this.masterPassword = null;
this.toasterService.popAsync('success', null, this.i18nService.t('exportSuccess'));
}
}