Merge branch 'master' into fixes_stage1

This commit is contained in:
Ulf Gebhardt 2022-03-29 01:36:47 +02:00 committed by GitHub
commit 30e2556384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 46 additions and 7 deletions

View File

@ -10,9 +10,20 @@
</b-col>
<b-col cols="7">
<div class="gdd-transaction-list-item-name">
<b-link v-if="linkedUser && linkedUser.email" @click.stop="tunnelEmail">
{{ itemText }}
</b-link>
<div v-if="linkedUser && linkedUser.email">
<b-link @click.stop="tunnelEmail">
{{ itemText }}
</b-link>
<span v-if="transactionLinkId">
{{ $t('via_link') }}
<b-icon
icon="link45deg"
variant="muted"
class="m-mb-1"
:title="$t('gdd_per_link.redeemed-title')"
/>
</span>
</div>
<span v-else>{{ itemText }}</span>
</div>
</b-col>
@ -35,6 +46,11 @@ export default {
type: String,
required: false,
},
transactionLinkId: {
type: Number,
required: false,
default: null,
},
},
methods: {
tunnelEmail() {

View File

@ -13,7 +13,12 @@
<b-col cols="11">
<!-- Amount / Name || Text -->
<amount-and-name-row :amount="amount" :linkedUser="linkedUser" v-on="$listeners" />
<amount-and-name-row
v-on="$listeners"
:amount="amount"
:linkedUser="linkedUser"
:transactionLinkId="transactionLinkId"
/>
<!-- Nachricht Memo -->
<memo-row :memo="memo" />
@ -86,6 +91,10 @@ export default {
type: Date,
required: true,
},
transactionLinkId: {
type: Number,
required: false,
},
},
data() {
return {

View File

@ -13,7 +13,12 @@
<b-col cols="11">
<!-- Amount / Name -->
<amount-and-name-row :amount="amount" :linkedUser="linkedUser" v-on="$listeners" />
<amount-and-name-row
v-on="$listeners"
:amount="amount"
:linkedUser="linkedUser"
:transactionLinkId="transactionLinkId"
/>
<!-- Memo -->
<memo-row :memo="memo" />
@ -87,6 +92,10 @@ export default {
type: Date,
required: true,
},
transactionLinkId: {
type: Number,
required: false,
},
},
data() {
return {

View File

@ -70,6 +70,7 @@ export const transactionsQuery = gql`
linkedUser {
email
}
transactionLinkId
}
}
}

View File

@ -116,6 +116,7 @@
"redeem-text": "Willst du den Betrag jetzt einlösen?",
"redeemed": "Erfolgreich eingelöst! Deinem Konto wurden {n} GDD gutgeschrieben.",
"redeemed-at": "Der Link wurde bereits am {date} eingelöst.",
"redeemed-title": "eingelöst",
"to-login": "Log dich ein",
"to-register": "Registriere ein neues Konto"
},
@ -249,5 +250,6 @@
},
"transaction-link": {
"send_you": "sendet dir"
}
},
"via_link": "über einen Link"
}

View File

@ -116,6 +116,7 @@
"redeem-text": "Do you want to redeem the amount now?",
"redeemed": "Successfully redeemed! Your account has been credited with {n} GDD.",
"redeemed-at": "The link was already redeemed on {date}.",
"redeemed-title": "redeemed",
"to-login": "Log in",
"to-register": "Register a new account"
},
@ -249,5 +250,6 @@
},
"transaction-link": {
"send_you": "wants to send you"
}
},
"via_link": "via Link"
}