Skip to content

Commit

Permalink
download pdf instead of show
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Node-Karlsruhe committed Jan 6, 2023
1 parent 3f11e4d commit d4178fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/views/Verify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ export default {
},
methods: {
downloadCredentialPDF(credential) {
var win = window.open('', '_blank');
//var win = window.open('', '_blank');
credentialPDF(credential)
.then((pdf) => {
return pdfMake.createPdf(pdf).open({}, win);
//return pdfMake.createPdf(pdf).download(this.getCredCompId('credential', credential.id) + '.pdf');
//return pdfMake.createPdf(pdf).open({}, win);
return pdfMake.createPdf(pdf).download(this.getCredCompId('credential', credential.id) + '.pdf');
})
.catch((error) => {
this.toast.error(`Something went wrong creating the pdf!\n${error}`);
Expand Down

0 comments on commit d4178fe

Please sign in to comment.