feat(front): label prop for CopyInput
This commit is contained in:
parent
6ee0d81976
commit
75d52faedc
|
@ -10,11 +10,13 @@ interface Props {
|
||||||
value: string
|
value: string
|
||||||
buttonClasses?: string
|
buttonClasses?: string
|
||||||
id?: string
|
id?: string
|
||||||
|
label: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<Props>(), {
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
buttonClasses: 'accent',
|
buttonClasses: 'accent',
|
||||||
id: 'copy-input'
|
id: 'copy-input',
|
||||||
|
label: 'label'
|
||||||
})
|
})
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
@ -36,6 +38,7 @@ const { copy, isSupported: canCopy, copied } = useClipboard({ source: value, cop
|
||||||
readonly
|
readonly
|
||||||
:name="id"
|
:name="id"
|
||||||
type="text"
|
type="text"
|
||||||
|
:label="label"
|
||||||
>
|
>
|
||||||
<template #input-right>
|
<template #input-right>
|
||||||
<Button
|
<Button
|
||||||
|
|
|
@ -266,11 +266,12 @@ const isOpen = ref(false)
|
||||||
>
|
>
|
||||||
<div class="ui form">
|
<div class="ui form">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label :for="library.fid">{{ t('views.content.remote.Card.label.sharingLink') }}</label>
|
<Spacer />
|
||||||
<copy-input
|
<copy-input
|
||||||
:id="library.fid"
|
:id="library.fid"
|
||||||
:button-classes="'basic'"
|
:button-classes="'basic'"
|
||||||
:value="library.fid"
|
:value="library.fid"
|
||||||
|
:label="t('views.content.remote.Card.label.sharingLink')"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue