mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Use tradeProfit pill in trade details
This commit is contained in:
parent
2570bcd882
commit
6121fb9d06
|
@ -27,7 +27,7 @@
|
|||
v-if="trade.profit_ratio && trade.profit_abs"
|
||||
:description="`${trade.is_open ? 'Current Profit' : 'Close Profit'}`"
|
||||
>
|
||||
{{ formatPercent(trade.profit_ratio) }} | {{ trade.profit_abs }}
|
||||
<trade-profit class="ml-2" :trade="trade" />
|
||||
</ValuePair>
|
||||
</div>
|
||||
<div class="col-lg-7">
|
||||
|
@ -62,10 +62,11 @@
|
|||
import { Component, Vue, Prop } from 'vue-property-decorator';
|
||||
import { formatPercent, formatPriceCurrency, formatPrice, timestampms } from '@/shared/formatters';
|
||||
import ValuePair from '@/components/general/ValuePair.vue';
|
||||
import TradeProfit from '@/components/ftbot/TradeProfit.vue';
|
||||
import { Trade } from '@/types';
|
||||
|
||||
@Component({
|
||||
components: { ValuePair },
|
||||
components: { ValuePair, TradeProfit },
|
||||
})
|
||||
export default class TradeDetail extends Vue {
|
||||
@Prop({ type: Object, required: true }) trade!: Trade;
|
||||
|
|
Loading…
Reference in New Issue
Block a user