mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-13 03:33:50 +00:00
Fix tradelist table-fields causing a "flicker"
This commit is contained in:
parent
6443b27068
commit
aab98da77e
|
@ -143,10 +143,10 @@ const rows = computed(() => {
|
||||||
return props.trades.length;
|
return props.trades.length;
|
||||||
});
|
});
|
||||||
|
|
||||||
let tableFields: TableField[] = [];
|
const tableFields = ref<TableField[]>([]);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
tableFields = [
|
tableFields.value = [
|
||||||
{ key: 'trade_id', label: 'ID' },
|
{ key: 'trade_id', label: 'ID' },
|
||||||
{ key: 'pair', label: 'Pair' },
|
{ key: 'pair', label: 'Pair' },
|
||||||
{ key: 'amount', label: 'Amount' },
|
{ key: 'amount', label: 'Amount' },
|
||||||
|
@ -181,7 +181,7 @@ onMounted(() => {
|
||||||
...(props.activeTrades ? openFields : closedFields),
|
...(props.activeTrades ? openFields : closedFields),
|
||||||
];
|
];
|
||||||
if (props.multiBotView) {
|
if (props.multiBotView) {
|
||||||
tableFields.unshift({ key: 'botName', label: 'Bot' });
|
tableFields.value.unshift({ key: 'botName', label: 'Bot' });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user