mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix line beginnings of copy link and text
This commit is contained in:
parent
6956b2cac9
commit
09df48ce57
@ -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>
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
/* eslint-disable prettier/prettier */
|
||||
export const copyLinks = {
|
||||
props: {
|
||||
link: { type: String, required: true },
|
||||
@ -26,16 +27,9 @@ export const copyLinks = {
|
||||
navigator.clipboard
|
||||
.writeText(
|
||||
`${this.link}
|
||||
${this.$store.state.firstName} ${this.$t('transaction-link.send_you')} ${
|
||||
this.amount
|
||||
} Gradido.
|
||||
${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.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(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user