IsaakKrut commented on code in PR #2224:
URL: https://github.com/apache/streampipes/pull/2224#discussion_r1405165165
##########
ui/src/app/assets/components/asset-overview/asset-overview.component.ts:
##########
@@ -147,4 +150,26 @@ export class SpAssetOverviewComponent implements OnInit {
this.loadAssets();
});
}
+
+ downloadAsset(asset: SpAssetModel) {
+ this.dataExportService
+ .getExportPreview([asset._id])
+ .pipe(
+ mergeMap(preview =>
+ this.dataExportService.triggerExport(preview),
+ ),
+ )
+ .subscribe((data: Blob) => {
+ const blob = new Blob([data], { type: 'application/zip' });
Review Comment:
Updated to use file-saver
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]