log validLink setting and set recepientUser by setDisbursementLink after

Login/Registration of recepient
This commit is contained in:
clauspeterhuebner 2025-04-24 22:12:08 +02:00
parent 801df7575b
commit 4604f3e77b
2 changed files with 17 additions and 3 deletions

View File

@ -6,10 +6,10 @@
{{ CONFIG.COMMUNITY_NAME }} {{ CONFIG.COMMUNITY_NAME }}
{{ $t('contribution-link.thanksYouWith') }} {{ $filters.GDD(linkData.amount) }} {{ $t('contribution-link.thanksYouWith') }} {{ $filters.GDD(linkData.amount) }}
</h1> </h1>
<h1 v-if="isDisbursementLink && linkData.amount !== ''"> <h3 v-if="isDisbursementLink && linkData.amount !== ''">
{{ linkData.senderCommunity.name + '.' + linkData.senderUser.firstName }} {{ '"' + linkData.senderCommunity.name + '.' + linkData.senderUser.firstName }}
{{ $t('transaction-link.send_you') }} {{ $filters.GDD(linkData.amount) }} {{ $t('transaction-link.send_you') }} {{ $filters.GDD(linkData.amount) }}
</h1> </h3>
<b>{{ linkData.memo }}</b> <b>{{ linkData.memo }}</b>
</BCard> </BCard>
</div> </div>

View File

@ -136,6 +136,7 @@ const itemType = computed(() => {
} }
if (!linkData.value.redeemedAt && !linkData.value.deletedAt) { if (!linkData.value.redeemedAt && !linkData.value.deletedAt) {
console.log('TransactionLink.itemType... VALID') console.log('TransactionLink.itemType... VALID')
console.log('TransactionLink.itemType... validLink=', validLink.value)
return 'VALID' return 'VALID'
} }
} }
@ -235,6 +236,19 @@ function setDisbursementLinkInformation() {
linkData.value = queryTransactionLink linkData.value = queryTransactionLink
console.log('TransactionLink.setDisbursementLinkInformation... linkData.value=', linkData.value) 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) { async function mutationLink(amount) {