From e8b70608e90e52eb619db4756595cbc1ff82d114 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 5 Jul 2022 09:34:32 +0200 Subject: [PATCH] double apostrophe removed, fix yarn lint --- .../TransactionLinks/TransactionLink.vue | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/TransactionLinks/TransactionLink.vue b/frontend/src/components/TransactionLinks/TransactionLink.vue index 1cebf697d..1476c3be6 100644 --- a/frontend/src/components/TransactionLinks/TransactionLink.vue +++ b/frontend/src/components/TransactionLinks/TransactionLink.vue @@ -22,7 +22,11 @@ {{ $t('gdd_per_link.copy') }} - + {{ $t('gdd_per_link.copy-with-text') }} @@ -106,7 +110,7 @@ export default { copyLinkWithText() { navigator.clipboard .writeText( - ``${this.link} + `${this.link} ${this.$store.state.firstName} ${this.$t('transaction-link.send_you')} ${ this.amount }. Gradido @@ -114,11 +118,12 @@ export default { ${this.$t('gdd_per_link.credit-your-gradido')} ${this.$t( 'gdd_per_link.validUntilDate', { date: this.$d(new Date(this.validUntil), 'short') }, - )}`) - .then(() => { - this.toastSuccess(this.$t('gdd_per_link.link-and-text-copied')) - }) - .catch(() => { + )}`, + ) + .then(() => { + this.toastSuccess(this.$t('gdd_per_link.link-and-text-copied')) + }) + .catch(() => { this.$bvModal.show('modalPopoverCopyError' + this.id) this.toastError(this.$t('gdd_per_link.not-copied')) })