diff --git a/src/components/ftbot/PairlistConfigurator.vue b/src/components/ftbot/PairlistConfigurator.vue index 6efbdd5f..9c37f0c0 100644 --- a/src/components/ftbot/PairlistConfigurator.vue +++ b/src/components/ftbot/PairlistConfigurator.vue @@ -58,12 +58,18 @@ size="lg" squared class="mt-2 evaluate" - @click="test" + @click="evaluateClick" >Evaluate +
{{ configJSON }}
@@ -76,6 +82,7 @@ import { useBotStore } from '@/stores/ftbotwrapper'; import PairlistConfigItem from './PairlistConfigItem.vue'; import { Pairlist, PairlistConfig, PairlistParamType, PairlistPayloadItem } from '@/types'; import { useSortable, moveArrayElement } from '@vueuse/integrations/useSortable'; +import { useClipboard } from '@vueuse/core'; const emit = defineEmits([ 'update:modelValue', @@ -178,7 +185,9 @@ async function save() { emit('saveConfig', config.value); } -async function test() { +const { copy, isSupported } = useClipboard(); + +async function evaluateClick() { const payload = configToPayload(); evaluating.value = true;