mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-02-05 05:13:49 +00:00
Fixes #618- Workflow Spec File Download icon not responsive
This commit is contained in:
parent
57ecf81f6f
commit
1a93ad0222
@ -88,7 +88,7 @@ export class FileListComponent implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
|
|
||||||
downloadFile(fm: FileMeta) {
|
downloadFile(fm: FileMeta) {
|
||||||
this.api.getFileData(fm.id).subscribe(response => {
|
this.api.getSpecFileData(this.workflowSpec, fm.name).subscribe(response => {
|
||||||
const blob = new Blob([response.body], {type: fm.content_type});
|
const blob = new Blob([response.body], {type: fm.content_type});
|
||||||
fileSaver.saveAs(blob, fm.name);
|
fileSaver.saveAs(blob, fm.name);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user