Skip to content

Commit

Permalink
fix vpp pdf without image
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Node-Karlsruhe committed Feb 10, 2023
1 parent 1f29468 commit d085575
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ VC Verifier Changelog
WIP
---


1.1.1 (2023-02-10)
---

- fix vpp not rendering without image
- UI improvements

1.1.0 (2023-02-10)
Expand Down
Binary file added frontend/src/assets/img/no-image-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions frontend/src/pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,11 @@ export async function productPassportPDF(vpp, credentials) {
width: '*',
stack: [
{
text: vpp.model,
text: vpp.model || 'Unknown model',
bold: true
},
{
text: 'by ' + vpp.brand || 'unknown'
text: vpp.brand ? 'by ' + vpp.brand : ''
},
{
qr: vpp.digital_link || vpp.id,
Expand All @@ -324,7 +324,7 @@ export async function productPassportPDF(vpp, credentials) {
margin: 20
},
{
image: productImage || undefined,
image: productImage || await getBase64ImageFromURL(require('@/assets/img/no-image-icon.png')),
width: 200
},
]
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createStore } from 'vuex'

export default createStore({
state: {
version: '1.1.0',
version: '1.1.1',
verifiables: [],
VC_REGISTRY: process.env.VC_REGISTRY || 'https://ssi.eecc.de/api/registry/vcs/',
showQRModal: false
Expand Down

0 comments on commit d085575

Please sign in to comment.