Fix trade filter

This commit is contained in:
Matthias 2023-02-10 19:45:54 +01:00
parent af9b64c046
commit 872cf42753

View File

@ -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"