From d08250925a786f23f1191d19b5dfa464baaae5a3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 19 Nov 2022 14:41:04 +0100 Subject: [PATCH] Small fix to tradeList --- src/components/ftbot/TradeList.vue | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/components/ftbot/TradeList.vue b/src/components/ftbot/TradeList.vue index a001957d..d6bbde94 100644 --- a/src/components/ftbot/TradeList.vue +++ b/src/components/ftbot/TradeList.vue @@ -5,7 +5,7 @@ small hover stacked="md" - :items="trades" + :items="[...trades]" :fields="tableFields" show-empty :empty-text="emptyText" @@ -190,10 +190,7 @@ export default defineComponent({ const forceExitPartialHandler = (item: Trade) => { feTrade.value = item; - nextTick(() => { - console.log('showing modal', item); - root?.proxy.$bvModal.show('forceexit-modal'); - }); + forceExitVisible.value = true; }; const handleContextMenuEvent = (item, index, event) => { @@ -221,16 +218,11 @@ export default defineComponent({ }); }; - const onRowClicked = (item, index) => { + const onRowClicked = (item) => { // Only allow single selection mode! - if ( - item && - item.trade_id !== botStore.activeBot.detailTradeId && - !tradesTable.value?.isRowSelected(index) - ) { + if (item && item.trade_id !== botStore.activeBot.detailTradeId) { botStore.activeBot.setDetailTrade(item); } else { - console.log('unsetting item'); botStore.activeBot.setDetailTrade(null); } };