From 4604f3e77be3dbc34a7fa34ed8fa85e32285fc87 Mon Sep 17 00:00:00 2001
From: clauspeterhuebner
Date: Thu, 24 Apr 2025 22:12:08 +0200
Subject: [PATCH] log validLink setting and set recepientUser by
setDisbursementLink after Login/Registration of recepient
---
.../LinkInformations/RedeemInformation.vue | 6 +++---
frontend/src/pages/TransactionLink.vue | 14 ++++++++++++++
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/frontend/src/components/LinkInformations/RedeemInformation.vue b/frontend/src/components/LinkInformations/RedeemInformation.vue
index 71c2f9312..99b0bf440 100644
--- a/frontend/src/components/LinkInformations/RedeemInformation.vue
+++ b/frontend/src/components/LinkInformations/RedeemInformation.vue
@@ -6,10 +6,10 @@
{{ CONFIG.COMMUNITY_NAME }}
{{ $t('contribution-link.thanksYouWith') }} {{ $filters.GDD(linkData.amount) }}
-
- {{ linkData.senderCommunity.name + '.' + linkData.senderUser.firstName }}
+
+ {{ '"' + linkData.senderCommunity.name + '.' + linkData.senderUser.firstName }}
{{ $t('transaction-link.send_you') }} {{ $filters.GDD(linkData.amount) }}
-
+
{{ linkData.memo }}
diff --git a/frontend/src/pages/TransactionLink.vue b/frontend/src/pages/TransactionLink.vue
index e7b5cdbdf..15256a814 100644
--- a/frontend/src/pages/TransactionLink.vue
+++ b/frontend/src/pages/TransactionLink.vue
@@ -136,6 +136,7 @@ const itemType = computed(() => {
}
if (!linkData.value.redeemedAt && !linkData.value.deletedAt) {
console.log('TransactionLink.itemType... VALID')
+ console.log('TransactionLink.itemType... validLink=', validLink.value)
return 'VALID'
}
}
@@ -235,6 +236,19 @@ function setDisbursementLinkInformation() {
linkData.value = queryTransactionLink
console.log('TransactionLink.setDisbursementLinkInformation... linkData.value=', linkData.value)
}
+ // recipientUser is only set if the user is logged in
+ if (store.state.gradidoID !== null) {
+ console.log('TransactionLink.setDisbursementLinkInformation... setting recipientUser')
+ linkData.value.recipientUser = {
+ gradidoID: store.state.gradidoID,
+ firstName: store.state.firstName,
+ alias: store.state.alias,
+ }
+ console.log(
+ 'TransactionLink.setDisbursementLinkInformation... recipientUser=',
+ linkData.value.recipientUser,
+ )
+ }
}
async function mutationLink(amount) {