double apostrophe removed, fix yarn lint

This commit is contained in:
ogerly 2022-07-05 09:34:32 +02:00 committed by mahula
parent 6c856c8a92
commit e8b70608e9

View File

@ -22,7 +22,11 @@
<b-icon icon="clipboard"></b-icon> <b-icon icon="clipboard"></b-icon>
{{ $t('gdd_per_link.copy') }} {{ $t('gdd_per_link.copy') }}
</b-dropdown-item> </b-dropdown-item>
<b-dropdown-item v-if="validLink" class="test-copy-text pt-3" @click="copyLinkWithText()"> <b-dropdown-item
v-if="validLink"
class="test-copy-text pt-3"
@click="copyLinkWithText()"
>
<b-icon icon="clipboard-plus"></b-icon> <b-icon icon="clipboard-plus"></b-icon>
{{ $t('gdd_per_link.copy-with-text') }} {{ $t('gdd_per_link.copy-with-text') }}
</b-dropdown-item> </b-dropdown-item>
@ -106,7 +110,7 @@ export default {
copyLinkWithText() { copyLinkWithText() {
navigator.clipboard navigator.clipboard
.writeText( .writeText(
``${this.link} `${this.link}
${this.$store.state.firstName} ${this.$t('transaction-link.send_you')} ${ ${this.$store.state.firstName} ${this.$t('transaction-link.send_you')} ${
this.amount this.amount
}. Gradido }. Gradido
@ -114,11 +118,12 @@ export default {
${this.$t('gdd_per_link.credit-your-gradido')} ${this.$t( ${this.$t('gdd_per_link.credit-your-gradido')} ${this.$t(
'gdd_per_link.validUntilDate', 'gdd_per_link.validUntilDate',
{ date: this.$d(new Date(this.validUntil), 'short') }, { date: this.$d(new Date(this.validUntil), 'short') },
)}`) )}`,
.then(() => { )
this.toastSuccess(this.$t('gdd_per_link.link-and-text-copied')) .then(() => {
}) this.toastSuccess(this.$t('gdd_per_link.link-and-text-copied'))
.catch(() => { })
.catch(() => {
this.$bvModal.show('modalPopoverCopyError' + this.id) this.$bvModal.show('modalPopoverCopyError' + this.id)
this.toastError(this.$t('gdd_per_link.not-copied')) this.toastError(this.$t('gdd_per_link.not-copied'))
}) })