mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
* frontend - moved to vue 2.7 and vite * frontend - moved to vue 3 * frontend - login page updates * fix(frontend): WiP migration * fix(frontend): WiP migration * fix(frontend): WiP migration * fix(frontend): WiP migration * fix(frontend): WiP migration * fix(frontend): fix eslint/stylelint issues * fix(frontend): fix eslint/stylelint issues * feature(frontend): update node in docker frontend * feature(frontend): move send types out of Send file * feature(frontend): add entry in package json to fix eslint issue * feature(frontend): eslint fix * replace docker-compose with docker compose * update docker-compose test file * feature(frontend): Creation fixes * feature(frontend): Add missing updates for apollo scripts. --------- Co-authored-by: einhornimmond <silas@einhornimmond.de>
61 lines
1.7 KiB
Vue
61 lines
1.7 KiB
Vue
<template>
|
|
<div class="clipboard-copy">
|
|
<div v-if="canCopyLink" class="mb-5">
|
|
<div>
|
|
<label>{{ $t('gdd_per_link.copy-link') }}</label>
|
|
<div
|
|
class="pointer text-center bg-secondary gradido-border-radius p-3"
|
|
data-test="copyLink"
|
|
@click="copyLink"
|
|
>
|
|
{{ link }}
|
|
<div>
|
|
<BButton class="p-4">
|
|
<IBiLink45deg />
|
|
<!-- <b-icon icon="link45deg"></b-icon>-->
|
|
</BButton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="mt-5">
|
|
<label>{{ $t('gdd_per_link.copy-link-with-text') }}</label>
|
|
<div
|
|
class="pointer text-center bg-secondary gradido-border-radius p-3"
|
|
data-test="copyLinkWithText"
|
|
@click="copyLinkWithText"
|
|
>
|
|
{{ linkText }}
|
|
<div>
|
|
<BButton class="p-4">
|
|
<IBiLink45deg />
|
|
<!-- <b-icon icon="link45deg"></b-icon>-->
|
|
</BButton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div v-else>
|
|
<div class="alert-danger p-3">{{ $t('gdd_per_link.not-copied') }}</div>
|
|
<div class="alert-muted h3 p-3">{{ link }}</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script setup>
|
|
import { useCopyLinks } from '@/composables/useCopyLinks'
|
|
|
|
const props = defineProps({
|
|
link: { type: String, required: true },
|
|
amount: { type: String, required: true },
|
|
memo: { type: String, required: true },
|
|
validUntil: { type: String, required: true },
|
|
})
|
|
|
|
const { copyLink, copyLinkWithText, linkText, canCopyLink } = useCopyLinks({ ...props })
|
|
</script>
|
|
|
|
<style>
|
|
.svg {
|
|
filter: brightness(0) invert(1);
|
|
}
|
|
</style>
|