diff --git a/frontend/src/components/DecayInformations/CollapseLinksList.spec.js b/frontend/src/components/DecayInformations/CollapseLinksList.spec.js
index 2bec71172..68d5d427f 100644
--- a/frontend/src/components/DecayInformations/CollapseLinksList.spec.js
+++ b/frontend/src/components/DecayInformations/CollapseLinksList.spec.js
@@ -24,7 +24,6 @@ const propsData = {
memo: 'Eene meene Siegerpreis, vor mir steht ein Schokoeis. Hex-hex!',
redeemedAt: null,
validUntil: '2022-03-30T14:22:40.000Z',
- text: '',
},
{
amount: '6',
@@ -36,7 +35,6 @@ const propsData = {
memo: 'Eene meene buntes Laub, auf dem Schrank da liegt kein Staub.',
redeemedAt: null,
validUntil: '2022-03-30T14:22:40.000Z',
- text: '',
},
],
transactionLinkCount: 3,
diff --git a/frontend/src/components/GddSend/TransactionResultLink.vue b/frontend/src/components/GddSend/TransactionResultLink.vue
index 53b9d05cb..9efbbb3c2 100644
--- a/frontend/src/components/GddSend/TransactionResultLink.vue
+++ b/frontend/src/components/GddSend/TransactionResultLink.vue
@@ -6,7 +6,6 @@
:amount="amount"
:memo="memo"
:validUntil="validUntil"
- :text="text"
>
@@ -35,16 +34,5 @@ export default {
memo: { type: String, required: true },
validUntil: { type: String, required: true },
},
- data() {
- return {
- text: `${this.link}
-${this.$store.state.firstName} ${this.$t('transaction-link.send_you')} ${this.amount} Gradido.
-"${this.memo}"
-${this.$t('gdd_per_link.credit-your-gradido')} ${this.$t('gdd_per_link.validUntilDate', {
- date: this.$d(new Date(this.validUntil), 'short'),
- })}
-${this.$t('gdd_per_link.link-hint')}`,
- }
- },
}
diff --git a/frontend/src/components/Transactions/TransactionLinkSummary.spec.js b/frontend/src/components/Transactions/TransactionLinkSummary.spec.js
index 829a8930e..a5bdc4714 100644
--- a/frontend/src/components/Transactions/TransactionLinkSummary.spec.js
+++ b/frontend/src/components/Transactions/TransactionLinkSummary.spec.js
@@ -52,7 +52,6 @@ describe('TransactionLinkSummary', () => {
'Hokuspokus Haselnuss, Vogelbein und Fliegenfuß, damit der Trick gelingen muss!',
redeemedAt: null,
validUntil: '2022-03-30T14:22:40.000Z',
- text: '',
},
{
amount: '85',
@@ -63,7 +62,6 @@ describe('TransactionLinkSummary', () => {
memo: 'Mäusespeck und Katzenbuckel, Tricks und Tracks und Zauberkugel!',
redeemedAt: null,
validUntil: '2022-03-30T14:22:40.000Z',
- text: '',
},
{
amount: '95',
@@ -75,7 +73,6 @@ describe('TransactionLinkSummary', () => {
'Abrakadabra 1,2,3, die Sonne kommt herbei. Schweinepups und Spuckebrei, der Regen ist vorbei.',
redeemedAt: null,
validUntil: '2022-03-30T14:22:40.000Z',
- text: '',
},
{
amount: '150',
@@ -87,7 +84,6 @@ describe('TransactionLinkSummary', () => {
'Abrakadabra 1,2,3 was verschwunden ist komme herbei.Wieseldreck und Schweinemist, zaubern das ist keine List.',
redeemedAt: null,
validUntil: '2022-03-30T14:22:40.000Z',
- text: '',
},
],
},
@@ -175,7 +171,6 @@ describe('TransactionLinkSummary', () => {
'Hat jemand die Nummer von der Hexe aus Schneewittchen? Ich bräuchte mal ein paar Äpfel.',
redeemedAt: null,
validUntil: '2022-03-30T14:22:40.000Z',
- text: '',
},
{
amount: '86',
@@ -187,7 +182,6 @@ describe('TransactionLinkSummary', () => {
'Die Windfahn´ krächzt am Dach, Der Uhu im Geklüfte; Was wispert wie ein Ach Verhallend in die Lüfte?',
redeemedAt: null,
validUntil: '2022-03-30T14:22:40.000Z',
- text: '',
},
{
amount: '96',
@@ -199,7 +193,6 @@ describe('TransactionLinkSummary', () => {
'Verschlafen kräht der Hahn, Ein Blitz noch, und ein trüber, Umwölbter Tag bricht an – Walpurgisnacht vorüber!',
redeemedAt: null,
validUntil: '2022-03-30T14:22:40.000Z',
- text: '',
},
{
amount: '150',
@@ -210,7 +203,6 @@ describe('TransactionLinkSummary', () => {
memo: 'Eene meene Flaschenschrank, fertig ist der Hexentrank!',
redeemedAt: null,
validUntil: '2022-03-30T14:22:40.000Z',
- text: '',
},
],
},
@@ -222,7 +214,7 @@ describe('TransactionLinkSummary', () => {
})
})
- it('has eight transactionLinks', () => {
+ it('has four transactionLinks', () => {
expect(wrapper.vm.transactionLinks).toHaveLength(4)
})
diff --git a/frontend/src/mixins/copyLinks.js b/frontend/src/mixins/copyLinks.js
index b6d422c67..ee48dc4e1 100644
--- a/frontend/src/mixins/copyLinks.js
+++ b/frontend/src/mixins/copyLinks.js
@@ -4,11 +4,17 @@ export const copyLinks = {
amount: { type: String, required: true },
memo: { type: String, required: true },
validUntil: { type: String, required: true },
- text: { type: String, required: true },
},
data() {
return {
canCopyLink: true,
+ text: `${this.link}
+${this.$store.state.firstName} ${this.$t('transaction-link.send_you')} ${this.amount} Gradido.
+"${this.memo}"
+${this.$t('gdd_per_link.credit-your-gradido')} ${this.$t('gdd_per_link.validUntilDate', {
+ date: this.$d(new Date(this.validUntil), 'short'),
+ })}
+${this.$t('gdd_per_link.link-hint')}`,
}
},
methods: {