mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
changed redeem for contribution link and transaction link
This commit is contained in:
parent
7b66ba4064
commit
1ba7e86173
@ -1,8 +1,12 @@
|
||||
<template>
|
||||
<div class="redeem-information">
|
||||
<b-jumbotron bg-variant="muted" text-variant="dark" border-variant="info">
|
||||
<h1>
|
||||
{{ firstName }}
|
||||
<h1 v-if="isContributionLink">
|
||||
{{ CONFIG.COMMUNITY_NAME }}
|
||||
{{ $t('contribution-link.thanksYouWith') }} {{ amount | GDD }}
|
||||
</h1>
|
||||
<h1 v-else>
|
||||
{{ user.firstName }}
|
||||
{{ $t('transaction-link.send_you') }} {{ amount | GDD }}
|
||||
</h1>
|
||||
<b>{{ memo }}</b>
|
||||
@ -10,12 +14,20 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import CONFIG from '@/config'
|
||||
|
||||
export default {
|
||||
name: 'RedeemInformation',
|
||||
props: {
|
||||
firstName: { type: String, required: true },
|
||||
user: { type: Object, required: true },
|
||||
amount: { type: String, required: true },
|
||||
memo: { type: String, required: true, default: '' },
|
||||
isContributionLink: { type: Boolean, default: false },
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
CONFIG,
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="redeem-logged-out">
|
||||
<redeem-information :firstName="user.firstName" :amount="amount" :memo="memo" />
|
||||
<redeem-information v-bind="linkData" :isContributionLink="isContributionLink" />
|
||||
|
||||
<b-jumbotron>
|
||||
<div class="mb-6">
|
||||
@ -32,9 +32,8 @@ export default {
|
||||
RedeemInformation,
|
||||
},
|
||||
props: {
|
||||
user: { type: Object, required: true },
|
||||
amount: { type: String, required: true },
|
||||
memo: { type: String, required: true, default: '' },
|
||||
linkData: { type: Object, required: true },
|
||||
isContributionLink: { type: Boolean, default: false },
|
||||
},
|
||||
computed: {
|
||||
login() {
|
||||
|
||||
@ -271,6 +271,9 @@
|
||||
"transaction-link": {
|
||||
"send_you": "sendet dir"
|
||||
},
|
||||
"contribution-link": {
|
||||
"thanksYouWith":"dankt dir mit"
|
||||
},
|
||||
"via_link": "über einen Link",
|
||||
"welcome": "Willkommen",
|
||||
"WelcomeBy": "bei {name}"
|
||||
|
||||
@ -271,6 +271,9 @@
|
||||
"transaction-link": {
|
||||
"send_you": "wants to send you"
|
||||
},
|
||||
"contribution-link": {
|
||||
"thanksYouWith":"thanks you with"
|
||||
},
|
||||
"via_link": "via Link",
|
||||
"welcome": "Welcome",
|
||||
"WelcomeBy": "by {name}"
|
||||
|
||||
@ -1,10 +1,9 @@
|
||||
<template>
|
||||
<div class="show-transaction-link-informations">
|
||||
<div class="text-center"><b-img :src="img" fluid alt="logo"></b-img></div>
|
||||
<b-container class="mt-4">
|
||||
<transaction-link-item :type="itemType">
|
||||
<template #LOGGED_OUT>
|
||||
<redeem-logged-out v-bind="linkData" />
|
||||
<redeem-logged-out :linkData="linkData" :isContributionLink="isContributionLink" />
|
||||
</template>
|
||||
|
||||
<template #SELF_CREATOR>
|
||||
@ -95,6 +94,9 @@ export default {
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
isContributionLink() {
|
||||
return this.$route.params.code.search(/^CL-/) === 0
|
||||
},
|
||||
itemType() {
|
||||
// link wurde gelöscht: am, von
|
||||
if (this.linkData.deletedAt) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user