fix line beginnings of copy link and text

This commit is contained in:
mahula 2022-12-15 19:04:04 +01:00
parent 6956b2cac9
commit 09df48ce57
2 changed files with 7 additions and 13 deletions

View File

@ -3,14 +3,14 @@
<div v-if="canCopyLink" size="lg" class="mb-5">
<div class="d-flex">
<div>
<label>{{ $t('gradidoLink') }}</label>
<label>{{ $t('gdd_per_link.copy-link') }}</label>
<div class="pointer text-center bg-secondary gradido-border-radius p-4" @click="copyLink">
{{ link }}
<!-- <b-icon icon="clipboard-plus" class="ml-5"></b-icon> -->
</div>
</div>
<div class="ml-5">
<label>{{ $t('gdd_per_link.copy-link') }}</label>
<label>{{ $t('gdd_per_link.copy-link-with-text') }}</label>
<div>
<b-button @click="copyLinkWithText" class="p-4">
<b-icon icon="link45deg"></b-icon>

View File

@ -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'))