mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 18:23:50 +00:00
Support String type for CopyTextField
This commit is contained in:
parent
572396c3d1
commit
d112c65800
|
@ -4,7 +4,7 @@
|
|||
v-if="isSupported && isValid"
|
||||
role="button"
|
||||
class="copy-button position-absolute end-0 mt-1 me-2"
|
||||
@click="copy(content)"
|
||||
@click="copy(typeof content === 'string' ? content : JSON.stringify(content))"
|
||||
/>
|
||||
<pre class="text-start border p-1 mb-0"><code>{{ content }}</code></pre>
|
||||
</div>
|
||||
|
@ -14,7 +14,7 @@
|
|||
import { useClipboard } from '@vueuse/core';
|
||||
|
||||
defineProps({
|
||||
content: { type: String, required: true },
|
||||
content: { type: [String, Array<string>], required: true },
|
||||
isValid: { type: Boolean, default: true },
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user