diff --git a/src/components/ftbot/PairlistConfigurator.vue b/src/components/ftbot/PairlistConfigurator.vue index 61cdfc61..fd9c45e4 100644 --- a/src/components/ftbot/PairlistConfigurator.vue +++ b/src/components/ftbot/PairlistConfigurator.vue @@ -7,6 +7,7 @@ v-for="pairlist in availablePairlists" :key="pairlist.name" align-v="center" + :class="{ 'no-drag': config.pairlists.length == 0 && !pairlist.is_pairlist_generator }" class="pairlist d-flex text-start align-items-center" >
@@ -17,6 +18,7 @@ class="p-0" style="border: none" variant="outline-light" + :disabled="config.pairlists.length == 0 && !pairlist.is_pairlist_generator" @click="addToConfig(pairlist, selectedConfig.pairlists.length)" > @@ -140,6 +142,7 @@ useSortable(availablePairlistsEl, availablePairlists.value, { put: false, }, sort: false, + filter: '.no-drag', }); useSortable(pairlistConfigsEl, config.value.pairlists, { @@ -254,11 +257,19 @@ watch( ); -