From 09df48ce57fe5cdfb2ec297d0c227ab605db4ece Mon Sep 17 00:00:00 2001 From: mahula Date: Thu, 15 Dec 2022 19:04:04 +0100 Subject: [PATCH] fix line beginnings of copy link and text --- frontend/src/components/ClipboardCopy.vue | 4 ++-- frontend/src/mixins/copyLinks.js | 16 +++++----------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/frontend/src/components/ClipboardCopy.vue b/frontend/src/components/ClipboardCopy.vue index 8e6ee6d30..4e46c8e02 100644 --- a/frontend/src/components/ClipboardCopy.vue +++ b/frontend/src/components/ClipboardCopy.vue @@ -3,14 +3,14 @@
- +
{{ link }}
- +
diff --git a/frontend/src/mixins/copyLinks.js b/frontend/src/mixins/copyLinks.js index 08b5a2e05..e48e273d1 100644 --- a/frontend/src/mixins/copyLinks.js +++ b/frontend/src/mixins/copyLinks.js @@ -1,3 +1,4 @@ +/* eslint-disable prettier/prettier */ export const copyLinks = { props: { link: { type: String, required: true }, @@ -26,17 +27,10 @@ export const copyLinks = { navigator.clipboard .writeText( `${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')}`, +${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')}`, ) .then(() => { this.toastSuccess(this.$t('gdd_per_link.link-and-text-copied'))