mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-28 21:25:32 +00:00
set recipientUser after login in setTransactionLinkInformation
This commit is contained in:
parent
75dfa95898
commit
aa32cffe7b
@ -270,6 +270,19 @@ function setTransactionLinkInformation() {
|
||||
queryTransactionLink,
|
||||
)
|
||||
if (queryTransactionLink) {
|
||||
// recipientUser is only set if the user is logged in
|
||||
if (store.state.gradidoID !== null) {
|
||||
queryTransactionLink.recipientUser = {
|
||||
__typename: 'User',
|
||||
gradidoID: store.state.gradidoID,
|
||||
firstName: store.state.firstName,
|
||||
alias: store.state.alias,
|
||||
}
|
||||
}
|
||||
console.log(
|
||||
'TransactionLink.setTransactionLinkInformation... queryTransactionLink.recipientUser=',
|
||||
queryTransactionLink.recipientUser,
|
||||
)
|
||||
linkData.value = queryTransactionLink
|
||||
console.log('TransactionLink.setTransactionLinkInformation... linkData.value=', linkData.value)
|
||||
if (linkData.value.__typename === 'ContributionLink' && store.state.token) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user