#255 Download PDFs improvements
This commit is contained in:
parent
9ea2c70e1f
commit
9767ca7b71
|
@ -54,6 +54,6 @@ module.exports = Self => {
|
|||
|
||||
await fs.access(file.path);
|
||||
let stream = fs.createReadStream(file.path);
|
||||
return [stream, file.contentType, `attachment; filename="${file.name}"`];
|
||||
return [stream, file.contentType, `filename="${file.name}"`];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -76,6 +76,7 @@
|
|||
</vn-td>
|
||||
<vn-td center>
|
||||
<a ng-show="risk.pdf"
|
||||
target="_blank"
|
||||
href="api/InvoiceOuts/{{::risk.id}}/download?access_token={{::$ctrl.accessToken}}">
|
||||
<vn-icon-button
|
||||
icon="cloud_download"
|
||||
|
|
Loading…
Reference in New Issue