diff --git a/CHANGELOG.md b/CHANGELOG.md index dbb752c..37eb786 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/frontend/src/assets/img/no-image-icon.png b/frontend/src/assets/img/no-image-icon.png new file mode 100644 index 0000000..dd2029f Binary files /dev/null and b/frontend/src/assets/img/no-image-icon.png differ diff --git a/frontend/src/pdf.js b/frontend/src/pdf.js index 46143f0..6c17ae3 100644 --- a/frontend/src/pdf.js +++ b/frontend/src/pdf.js @@ -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, @@ -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 }, ] diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index ebaf175..1fa7a37 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -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