From 75d52faedcffb02a16be8a6cf28037bebc5403eb Mon Sep 17 00:00:00 2001 From: ArneBo Date: Thu, 16 Jan 2025 17:09:18 +0100 Subject: [PATCH] feat(front): label prop for CopyInput --- front/src/components/common/CopyInput.vue | 7 +++++-- front/src/views/content/remote/Card.vue | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/front/src/components/common/CopyInput.vue b/front/src/components/common/CopyInput.vue index 88f32a570..949a0bccb 100644 --- a/front/src/components/common/CopyInput.vue +++ b/front/src/components/common/CopyInput.vue @@ -10,11 +10,13 @@ interface Props { value: string buttonClasses?: string id?: string + label: string } const props = withDefaults(defineProps(), { buttonClasses: 'accent', - id: 'copy-input' + id: 'copy-input', + label: 'label' }) const { t } = useI18n() @@ -36,6 +38,7 @@ const { copy, isSupported: canCopy, copied } = useClipboard({ source: value, cop readonly :name="id" type="text" + :label="label" >