From 872cf427535dcb9c655564acc4c773b4aba24d59 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 10 Feb 2023 19:45:54 +0100 Subject: [PATCH] Fix trade filter --- src/components/ftbot/TradeList.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/ftbot/TradeList.vue b/src/components/ftbot/TradeList.vue index 9238c43b..71f1c47b 100644 --- a/src/components/ftbot/TradeList.vue +++ b/src/components/ftbot/TradeList.vue @@ -5,7 +5,14 @@ small hover stacked="md" - :items="[...trades]" + :items=" + trades.filter( + (t) => + t.pair.toLowerCase().includes(filterText.toLowerCase()) || + t.exit_reason?.toLowerCase().includes(filterText.toLowerCase()) || + t.enter_tag?.toLowerCase().includes(filterText.toLowerCase()), + ) + " :fields="tableFields" show-empty :empty-text="emptyText" @@ -15,7 +22,6 @@ selectable :select-head="false" select-mode="single" - :filter="filterText" @row-contextmenu="handleContextMenuEvent" @row-clicked="onRowClicked" @row-selected="onRowSelected"