Show slightly different values for Position increase calls

This commit is contained in:
Matthias 2024-03-30 09:03:48 +01:00
parent c8a0174726
commit 2128850dcf
2 changed files with 8 additions and 2 deletions

View File

@ -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"
></b-form-input>
@ -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();

View File

@ -80,7 +80,11 @@
</b-form-group>
</div>
<force-exit-form v-if="activeTrades" v-model="forceExitVisible" :trade="feTrade" />
<ForceEntryForm v-model="increasePosition.visible" :pair="increasePosition.trade?.pair" />
<ForceEntryForm
v-model="increasePosition.visible"
:pair="increasePosition.trade?.pair"
position-increase
/>
<b-modal v-model="removeTradeVisible" title="Exit trade" @ok="forceExitExecuter">
{{ confirmExitText }}