Don't show long/short if trading spot

This commit is contained in:
Matthias 2022-04-09 10:43:46 +02:00
parent a158605303
commit 06ba81c681

View File

@ -43,7 +43,11 @@
</template>
<template #cell(trade_id)="row">
{{ row.item.trade_id }}
{{ botApiVersion > 2.0 ? '| ' + (row.item.is_short ? 'Short' : 'Long') : '' }}
{{
botApiVersion > 2.0 && row.item.trading_mode !== 'spot'
? '| ' + (row.item.is_short ? 'Short' : 'Long')
: ''
}}
</template>
<template #cell(profit)="row">
<trade-profit :trade="row.item" />