mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-05 00:56:06 +00:00
log validLink setting and set recepientUser by setDisbursementLink after
Login/Registration of recepient
This commit is contained in:
parent
801df7575b
commit
4604f3e77b
@ -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>
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user