export vault event

This commit is contained in:
Kyle Spearrin 2019-07-12 17:11:50 -04:00
parent 3a2f04006f
commit b0b9d8445e
3 changed files with 14 additions and 5 deletions

2
jslib

@ -1 +1 @@
Subproject commit 803dec26e7dbc1a31906349e7b2c9ddd67ef6c8a
Subproject commit 84aab0cb24b8418c625c28c79e8c190861531c5f

View File

@ -2,11 +2,13 @@ import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { CryptoService } from 'jslib/abstractions/crypto.service';
import { EventService } from 'jslib/abstractions/event.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 '../../tools/export.component';
import { EventType } from 'jslib/enums/eventType';
@Component({
selector: 'app-org-export',
@ -17,8 +19,8 @@ export class ExportComponent extends BaseExportComponent {
constructor(cryptoService: CryptoService, i18nService: I18nService,
platformUtilsService: PlatformUtilsService, exportService: ExportService,
private route: ActivatedRoute) {
super(cryptoService, i18nService, platformUtilsService, exportService);
eventService: EventService, private route: ActivatedRoute) {
super(cryptoService, i18nService, platformUtilsService, exportService, eventService);
}
ngOnInit() {
@ -34,4 +36,9 @@ export class ExportComponent extends BaseExportComponent {
getFileName() {
return super.getFileName('org');
}
async collectEvent(): Promise<any> {
// TODO
// await this.eventService.collect(EventType.Organization_ClientExportedVault);
}
}

View File

@ -1,6 +1,7 @@
import { Component } from '@angular/core';
import { CryptoService } from 'jslib/abstractions/crypto.service';
import { EventService } from 'jslib/abstractions/event.service';
import { ExportService } from 'jslib/abstractions/export.service';
import { I18nService } from 'jslib/abstractions/i18n.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
@ -13,8 +14,9 @@ import { ExportComponent as BaseExportComponent } from 'jslib/angular/components
})
export class ExportComponent extends BaseExportComponent {
constructor(cryptoService: CryptoService, i18nService: I18nService,
platformUtilsService: PlatformUtilsService, exportService: ExportService) {
super(cryptoService, i18nService, platformUtilsService, exportService, window);
platformUtilsService: PlatformUtilsService, exportService: ExportService,
eventService: EventService) {
super(cryptoService, i18nService, platformUtilsService, exportService, eventService, window);
}
protected saved() {