From 2fdbe2bbc9d57d9054d5bc19c284fba68db8ee60 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 14 Apr 2023 18:14:38 +0200 Subject: [PATCH] Fix duplicate actions in list --- src/components/ftbot/TradeList.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ftbot/TradeList.vue b/src/components/ftbot/TradeList.vue index c0e8bb4a..aaeee3d2 100644 --- a/src/components/ftbot/TradeList.vue +++ b/src/components/ftbot/TradeList.vue @@ -148,7 +148,6 @@ const rows = computed(() => { }); const tableFields: TableField[] = [ - props.multiBotView ? { key: 'botName', label: 'Bot' } : { key: 'actions' }, { key: 'trade_id', label: 'ID' }, { key: 'pair', label: 'Pair' }, { key: 'amount', label: 'Amount' }, @@ -182,6 +181,10 @@ const tableFields: TableField[] = [ { key: 'open_timestamp', label: 'Open date' }, ...(props.activeTrades ? openFields : closedFields), ]; +if (props.multiBotView) { + tableFields.unshift({ key: 'botName', label: 'Bot' }); +} + const feOrderType = ref(undefined); const forceExitHandler = (item: Trade, ordertype: string | undefined = undefined) => { feTrade.value = item;