diff --git a/src/components/general/CopyableTextfield.vue b/src/components/general/CopyableTextfield.vue index 2b535a0c..8e45d9be 100644 --- a/src/components/general/CopyableTextfield.vue +++ b/src/components/general/CopyableTextfield.vue @@ -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))" />
{{ content }}
@@ -14,7 +14,7 @@
import { useClipboard } from '@vueuse/core';
defineProps({
- content: { type: String, required: true },
+ content: { type: [String, Array