From 3c9c40d7ca12d0f5ed5e1ca53aa28db465d48b75 Mon Sep 17 00:00:00 2001 From: Mathias Brunkow Moser Date: Mon, 13 May 2024 16:37:58 +0200 Subject: [PATCH] fix(frontend): fixed bug from selection of multiple policies --- dpp-frontend/package-lock.json | 4 +- dpp-frontend/package.json | 2 +- dpp-frontend/src/views/PassportView.vue | 192 +++++++++++++++--------- 3 files changed, 124 insertions(+), 74 deletions(-) diff --git a/dpp-frontend/package-lock.json b/dpp-frontend/package-lock.json index fb1ba1026..e0e5c78da 100644 --- a/dpp-frontend/package-lock.json +++ b/dpp-frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "digital-product-pass-frontend", - "version": "2.3.0", + "version": "3.0.0-rc1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "digital-product-pass-frontend", - "version": "2.3.0", + "version": "3.0.0-rc1", "dependencies": { "@mdi/font": "5.9.55", "@popperjs/core": "^2.11.2", diff --git a/dpp-frontend/package.json b/dpp-frontend/package.json index b4875803e..fbba6f587 100644 --- a/dpp-frontend/package.json +++ b/dpp-frontend/package.json @@ -1,6 +1,6 @@ { "name": "digital-product-pass-frontend", - "version": "2.3.0", + "version": "3.0.0-rc1", "private": true, "scripts": { "serve": "vite --host localhost", diff --git a/dpp-frontend/src/views/PassportView.vue b/dpp-frontend/src/views/PassportView.vue index 48aacf783..769d85fc4 100644 --- a/dpp-frontend/src/views/PassportView.vue +++ b/dpp-frontend/src/views/PassportView.vue @@ -51,7 +51,10 @@ - +
@@ -66,9 +69,9 @@ :key="contractId" > - {{contractIndex+1}}. {{ - $t("passportView.policyAgreement.contractId") - }} + {{ contractIndex + 1 }}. + {{ $t("passportView.policyAgreement.contractId") }} {{ contractId }} @@ -78,7 +81,7 @@ v-for="(item, index) in group" :key="`${contractId}_${index}`" color="#0F71CB" - @click="chooseContract(contractId, item)" + @click="chooseContract(contractId, item['@id'])" :value="`${contractIndex}.${index}`" >