mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 21:15:15 +00:00
Add color to order detail view
This commit is contained in:
parent
77ba597f64
commit
2e5651e1f7
|
@ -112,13 +112,21 @@
|
||||||
)}, filled ${formatPrice(order.filled)}`"
|
)}, filled ${formatPrice(order.filled)}`"
|
||||||
>
|
>
|
||||||
(#{{ key + 1 }})
|
(#{{ key + 1 }})
|
||||||
|
<i-mdi-triangle
|
||||||
|
v-if="order.ft_order_side === 'buy'"
|
||||||
|
class="me-1 color-up"
|
||||||
|
style="font-size: 0.6rem"
|
||||||
|
/>
|
||||||
|
<i-mdi-triangle-down v-else class="me-1 color-down" style="font-size: 0.6rem" />
|
||||||
<DateTimeTZ
|
<DateTimeTZ
|
||||||
v-if="order.order_timestamp"
|
v-if="order.order_timestamp"
|
||||||
:date="order.order_timestamp"
|
:date="order.order_timestamp"
|
||||||
show-timezone
|
show-timezone
|
||||||
/>
|
/>
|
||||||
<b class="ms-1">{{ order.ft_order_side }}</b> for
|
<b class="ms-1" :class="order.ft_order_side === 'buy' ? 'color-up' : 'color-down'">{{
|
||||||
<b>{{ formatPrice(order.safe_price) }}</b> |
|
order.ft_order_side
|
||||||
|
}}</b>
|
||||||
|
for <b>{{ formatPrice(order.safe_price) }}</b> |
|
||||||
<span v-if="order.remaining && order.remaining !== 0" title="remaining"
|
<span v-if="order.remaining && order.remaining !== 0" title="remaining"
|
||||||
>{{ formatPrice(order.remaining, 8) }} /
|
>{{ formatPrice(order.remaining, 8) }} /
|
||||||
</span>
|
</span>
|
||||||
|
@ -136,6 +144,8 @@
|
||||||
import { formatPercent, formatPriceCurrency, formatPrice, timestampms } from '@/shared/formatters';
|
import { formatPercent, formatPriceCurrency, formatPrice, timestampms } from '@/shared/formatters';
|
||||||
import { Trade } from '@/types';
|
import { Trade } from '@/types';
|
||||||
|
|
||||||
|
const colorStore = useColorStore();
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
trade: { required: true, type: Object as () => Trade },
|
trade: { required: true, type: Object as () => Trade },
|
||||||
stakeCurrency: { required: true, type: String },
|
stakeCurrency: { required: true, type: String },
|
||||||
|
@ -148,4 +158,11 @@ defineProps({
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
.color-up {
|
||||||
|
color: v-bind('colorStore.colorUp');
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-down {
|
||||||
|
color: v-bind('colorStore.colorDown');
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user