mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-25 12:35:15 +00:00
Further simplify stuff
This commit is contained in:
parent
6ac1831ec5
commit
1469086623
|
@ -123,7 +123,6 @@ import { useBotStore } from '@/stores/ftbotwrapper';
|
|||
import { ForceEnterPayload, OrderSides } from '@/types';
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: { required: true, default: false, type: Boolean },
|
||||
pair: { type: String, default: '' },
|
||||
positionIncrease: { type: Boolean, default: false },
|
||||
});
|
||||
|
|
|
@ -59,7 +59,6 @@ const props = defineProps({
|
|||
type: Object as () => Trade,
|
||||
required: true,
|
||||
},
|
||||
modelValue: { required: true, default: false, type: Boolean },
|
||||
});
|
||||
|
||||
const model = defineModel<boolean>();
|
||||
|
|
|
@ -19,21 +19,9 @@
|
|||
<script setup lang="ts">
|
||||
import { useBotStore } from '@/stores/ftbotwrapper';
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: { type: String, required: true },
|
||||
});
|
||||
const emit = defineEmits<{ 'update:modelValue': [value: string] }>();
|
||||
const locFreqaiModel = defineModel<string>();
|
||||
const botStore = useBotStore();
|
||||
|
||||
const locFreqaiModel = computed({
|
||||
get() {
|
||||
return props.modelValue;
|
||||
},
|
||||
set(freqaiModel: string) {
|
||||
emit('update:modelValue', freqaiModel);
|
||||
},
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
if (botStore.activeBot.freqaiModelList.length === 0) {
|
||||
botStore.activeBot.getFreqAIModelList();
|
||||
|
|
Loading…
Reference in New Issue
Block a user