mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-04 16:45:27 +00:00
set redeemJwtLink.recipientUser after login
This commit is contained in:
parent
9cc5bc0848
commit
e7db4b1ef5
@ -113,7 +113,7 @@ const validLink = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const itemType = computed(() => {
|
const itemType = computed(() => {
|
||||||
console.log('TransactionLink.itemType... linkData=', linkData.value)
|
console.log('TransactionLink.itemType... linkData=', linkData)
|
||||||
if (linkData.value.deletedAt) {
|
if (linkData.value.deletedAt) {
|
||||||
console.log('TransactionLink.itemType... TEXT_DELETED')
|
console.log('TransactionLink.itemType... TEXT_DELETED')
|
||||||
return 'TEXT_DELETED'
|
return 'TEXT_DELETED'
|
||||||
@ -131,11 +131,28 @@ const itemType = computed(() => {
|
|||||||
console.log('TransactionLink.itemType... REDEEM_SELECT_COMMUNITY')
|
console.log('TransactionLink.itemType... REDEEM_SELECT_COMMUNITY')
|
||||||
return 'REDEEM_SELECT_COMMUNITY'
|
return 'REDEEM_SELECT_COMMUNITY'
|
||||||
}
|
}
|
||||||
|
console.log(
|
||||||
|
'TransactionLink.itemType... linkData.value.recipientUser=',
|
||||||
|
linkData.value.recipientUser,
|
||||||
|
)
|
||||||
|
console.log('TransactionLink.itemType... linkData.value=', linkData.value)
|
||||||
|
console.log('TransactionLink.itemType... store.state.gradidoID=', store.state.gradidoID)
|
||||||
|
console.log('TransactionLink.itemType... isRedeemJwtLink=', isRedeemJwtLink.value)
|
||||||
|
console.log('TransactionLink.itemType... linkData.value.senderUser=', linkData.value.senderUser)
|
||||||
|
console.log(
|
||||||
|
'TransactionLink.itemType... linkData.value.recipientUser.gradidoID=',
|
||||||
|
linkData.value.recipientUser.gradidoID,
|
||||||
|
)
|
||||||
|
console.log(
|
||||||
|
'TransactionLink.itemType... linkData.value.senderUser.gradidoID=',
|
||||||
|
linkData.value.senderUser.gradidoID,
|
||||||
|
)
|
||||||
if (
|
if (
|
||||||
(!isRedeemJwtLink.value &&
|
(!isRedeemJwtLink.value &&
|
||||||
linkData.value.recipientUser &&
|
linkData.value.recipientUser &&
|
||||||
store.state.gradidoID === linkData.value.recipientUser.gradidoID) ||
|
store.state.gradidoID === linkData.value.recipientUser.gradidoID) ||
|
||||||
(isRedeemJwtLink.value &&
|
(isRedeemJwtLink.value &&
|
||||||
|
linkData.value.senderUser &&
|
||||||
linkData.value.senderUser.gradidoID === linkData.value.recipientUser.gradidoID)
|
linkData.value.senderUser.gradidoID === linkData.value.recipientUser.gradidoID)
|
||||||
) {
|
) {
|
||||||
console.log('TransactionLink.itemType... SELF_CREATOR')
|
console.log('TransactionLink.itemType... SELF_CREATOR')
|
||||||
@ -250,11 +267,9 @@ function setRedeemJwtLinkInformation() {
|
|||||||
if (queryTransactionLink) {
|
if (queryTransactionLink) {
|
||||||
// recipientUser is only set if the user is logged in
|
// recipientUser is only set if the user is logged in
|
||||||
if (store.state.gradidoID !== null) {
|
if (store.state.gradidoID !== null) {
|
||||||
queryTransactionLink.recipientUser = {
|
queryTransactionLink.recipientUser.gradidoID = store.state.gradidoID
|
||||||
gradidoID: store.state.gradidoID,
|
queryTransactionLink.recipientUser.firstName = store.state.firstName
|
||||||
firstName: store.state.firstName,
|
queryTransactionLink.recipientUser.alias = store.state.alias
|
||||||
alias: store.state.alias,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
console.log(
|
console.log(
|
||||||
'TransactionLink.setRedeemJwtLinkInformation... recipientUser=',
|
'TransactionLink.setRedeemJwtLinkInformation... recipientUser=',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user