|
|
@ -54,7 +54,7 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy { |
|
|
|
@Output() activityDeleted = new EventEmitter<string>(); |
|
|
|
@Output() activityToClone = new EventEmitter<OrderWithAccount>(); |
|
|
|
@Output() activityToUpdate = new EventEmitter<OrderWithAccount>(); |
|
|
|
@Output() export = new EventEmitter<void>(); |
|
|
|
@Output() export = new EventEmitter<string[]>(); |
|
|
|
@Output() import = new EventEmitter<void>(); |
|
|
|
|
|
|
|
@ViewChild('autocomplete') matAutocomplete: MatAutocomplete; |
|
|
@ -182,7 +182,15 @@ export class ActivitiesTableComponent implements OnChanges, OnDestroy { |
|
|
|
} |
|
|
|
|
|
|
|
public onExport() { |
|
|
|
this.export.emit(); |
|
|
|
if (this.searchKeywords.length > 0) { |
|
|
|
this.export.emit( |
|
|
|
this.dataSource.filteredData.map((activity) => { |
|
|
|
return activity.id; |
|
|
|
}) |
|
|
|
); |
|
|
|
} else { |
|
|
|
this.export.emit(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public onImport() { |
|
|
|