#255 Download PDFs improvements

This commit is contained in:
Juan Ferrer 2019-01-15 12:17:33 +01:00
parent 9ea2c70e1f
commit 9767ca7b71
2 changed files with 2 additions and 1 deletions

View File

@ -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}"`];
};
};

View File

@ -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"