mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-01-26 08:38:50 +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) {
|
||||
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});
|
||||
fileSaver.saveAs(blob, fm.name);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user