Added the ability to download (export) archives from subscriptions

This commit is contained in:
Isaac Grynsztein
2020-03-08 22:24:59 -04:00
parent 6f3e94cf24
commit 846dd7e250
9 changed files with 43 additions and 5 deletions

View File

@@ -29,4 +29,11 @@ export class SubscriptionInfoDialogComponent implements OnInit {
});
}
downloadArchive() {
this.postsService.downloadArchive(this.sub).subscribe(res => {
const blob: Blob = res;
saveAs(blob, 'archive.txt');
});
}
}