From 2128850dcfe49217710d7da10478c1aec149c81b Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 30 Mar 2024 09:03:48 +0100 Subject: [PATCH] Show slightly different values for Position increase calls --- src/components/ftbot/ForceEntryForm.vue | 4 +++- src/components/ftbot/TradeList.vue | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/ftbot/ForceEntryForm.vue b/src/components/ftbot/ForceEntryForm.vue index 10d06ba4..8de2f5c2 100644 --- a/src/components/ftbot/ForceEntryForm.vue +++ b/src/components/ftbot/ForceEntryForm.vue @@ -3,7 +3,7 @@ id="forceentry-modal" ref="modal" v-model="model" - title="Force entering a trade" + :title="positionIncrease ? `Increasing position for ${pair}` : 'Force entering a trade'" @show="resetForm" @hidden="resetForm" @ok="handleEntry" @@ -37,6 +37,7 @@ id="pair-input" v-model="selectedPair" required + :disabled="positionIncrease" @keydown.enter="handleEntry" @focus="inputSelect" > @@ -124,6 +125,7 @@ import { ForceEnterPayload, OrderSides } from '@/types'; const props = defineProps({ modelValue: { required: true, default: false, type: Boolean }, pair: { type: String, default: '' }, + positionIncrease: { type: Boolean, default: false }, }); const emit = defineEmits(['update:modelValue']); const botStore = useBotStore(); diff --git a/src/components/ftbot/TradeList.vue b/src/components/ftbot/TradeList.vue index 31787f7c..2dcd696b 100644 --- a/src/components/ftbot/TradeList.vue +++ b/src/components/ftbot/TradeList.vue @@ -80,7 +80,11 @@ - + {{ confirmExitText }}