Fix duplicate actions in list

This commit is contained in:
Matthias 2023-04-14 18:14:38 +02:00
parent aac69dce2c
commit 2fdbe2bbc9

View File

@ -148,7 +148,6 @@ const rows = computed(() => {
}); });
const tableFields: TableField[] = [ const tableFields: TableField[] = [
props.multiBotView ? { key: 'botName', label: 'Bot' } : { key: 'actions' },
{ 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' },
@ -182,6 +181,10 @@ const tableFields: TableField[] = [
{ key: 'open_timestamp', label: 'Open date' }, { key: 'open_timestamp', label: 'Open date' },
...(props.activeTrades ? openFields : closedFields), ...(props.activeTrades ? openFields : closedFields),
]; ];
if (props.multiBotView) {
tableFields.unshift({ key: 'botName', label: 'Bot' });
}
const feOrderType = ref<string | undefined>(undefined); const feOrderType = ref<string | undefined>(undefined);
const forceExitHandler = (item: Trade, ordertype: string | undefined = undefined) => { const forceExitHandler = (item: Trade, ordertype: string | undefined = undefined) => {
feTrade.value = item; feTrade.value = item;