TradeDetail should support showing closed trades too

This commit is contained in:
Matthias 2020-08-29 17:39:41 +02:00
parent 1d29e31f64
commit 3c3a474d9f

View File

@ -16,11 +16,17 @@
<h5 class="detail-header">Profit</h5>
<b-card-text>
<ValuePair description="Current % profit" v-if="trade.current_profit_pct">
{{ trade.current_profit_pct }}%
{{ formatPercent(trade.current_profit_pct) }}
</ValuePair>
<ValuePair description="Current profit" v-if="trade.current_profit_abs">
{{ trade.current_profit_abs }}
</ValuePair>
<ValuePair description="Close % profit" v-if="trade.close_profit">
{{ formatPercent(trade.close_profit) }}
</ValuePair>
<ValuePair description="Close profit" v-if="trade.close_profit_abs">
{{ trade.close_profit_abs }}
</ValuePair>
</b-card-text>
<h5 class="detail-header">Stoploss</h5>
<b-card-text>