2018-07-06 05:38:36 +02:00
|
|
|
import { Component } from '@angular/core';
|
|
|
|
import {
|
|
|
|
ActivatedRoute,
|
|
|
|
Router,
|
|
|
|
} from '@angular/router';
|
|
|
|
|
|
|
|
import { ToasterService } from 'angular2-toaster';
|
|
|
|
import { Angulartics2 } from 'angulartics2';
|
|
|
|
|
|
|
|
import { I18nService } from 'jslib/abstractions/i18n.service';
|
2018-08-06 17:40:12 +02:00
|
|
|
import { ImportService } from 'jslib/abstractions/import.service';
|
2018-07-06 05:38:36 +02:00
|
|
|
|
|
|
|
import { ImportComponent as BaseImportComponent } from '../../tools/import.component';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-org-import',
|
|
|
|
templateUrl: '../../tools/import.component.html',
|
|
|
|
})
|
|
|
|
export class ImportComponent extends BaseImportComponent {
|
|
|
|
constructor(i18nService: I18nService, analytics: Angulartics2,
|
2018-08-06 17:40:12 +02:00
|
|
|
toasterService: ToasterService, importService: ImportService,
|
|
|
|
router: Router, private route: ActivatedRoute) {
|
|
|
|
super(i18nService, analytics, toasterService, importService, router);
|
2018-07-06 05:38:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ngOnInit() {
|
2021-02-03 18:41:33 +01:00
|
|
|
this.route.parent.parent.params.subscribe(async params => {
|
2018-07-06 05:38:36 +02:00
|
|
|
this.organizationId = params.organizationId;
|
2018-07-06 05:44:58 +02:00
|
|
|
this.successNavigate = ['organizations', this.organizationId, 'vault'];
|
2018-07-06 05:38:36 +02:00
|
|
|
super.ngOnInit();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|