From 3dc3021b08ed042a666e173359f67e9b692c4fb4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 19 Feb 2023 17:29:45 +0100 Subject: [PATCH] Remove temporary DebugLog --- src/components/ftbot/TradeActionsPopover.vue | 1 - src/components/ftbot/TradeList.vue | 18 ------------------ 2 files changed, 19 deletions(-) diff --git a/src/components/ftbot/TradeActionsPopover.vue b/src/components/ftbot/TradeActionsPopover.vue index faf981a6..152e0f95 100644 --- a/src/components/ftbot/TradeActionsPopover.vue +++ b/src/components/ftbot/TradeActionsPopover.vue @@ -34,7 +34,6 @@ const cancelOpenOrderHandler = (item: Trade) => { class="btn-xs" size="sm" title="Actions" - href="#" @click="popoverOpen = !popoverOpen" > diff --git a/src/components/ftbot/TradeList.vue b/src/components/ftbot/TradeList.vue index 72aeb8f4..c5c2ff37 100644 --- a/src/components/ftbot/TradeList.vue +++ b/src/components/ftbot/TradeList.vue @@ -140,14 +140,6 @@ const rows = computed(() => { return props.trades.length; }); -function debugLog(method: string) { - // TODO: Remove once "online debugging" is done. - console.log( - `Debugging ${method} remTradeV: ${removeTradeVisible.value} forceExitV: ${forceExitVisible.value} fet: `, - feTrade.value, - ); -} - const tableFields: Record[] = [ props.multiBotView ? { key: 'botName', label: 'Bot' } : {}, { key: 'trade_id', label: 'ID' }, @@ -181,17 +173,14 @@ const tableFields: Record[] = [ ]; const feOrderType = ref(undefined); const forceExitHandler = (item: Trade, ordertype: string | undefined = undefined) => { - debugLog('forceExitHandler'); feTrade.value = item; confirmExitValue.value = ModalReasons.forceExit; confirmExitText.value = `Really exit trade ${item.trade_id} (Pair ${item.pair}) using ${ordertype} Order?`; removeTradeVisible.value = true; feOrderType.value = ordertype; - debugLog('End forceExitHandler'); }; const forceExitExecuter = () => { - debugLog('forceExitExecuter'); if (confirmExitValue.value === ModalReasons.removeTrade) { const payload: MultiDeletePayload = { tradeid: String(feTrade.value.trade_id), @@ -222,32 +211,25 @@ const forceExitExecuter = () => { feOrderType.value = undefined; removeTradeVisible.value = false; - debugLog('End forceExitExecuter'); }; const removeTradeHandler = (item: Trade) => { - debugLog('removeTradeHandler'); confirmExitText.value = `Really delete trade ${item.trade_id} (Pair ${item.pair})?`; confirmExitValue.value = ModalReasons.removeTrade; feTrade.value = item; removeTradeVisible.value = true; - debugLog('End removeTradeHandler'); }; const forceExitPartialHandler = (item: Trade) => { - debugLog('forceExitPartialHandler'); feTrade.value = item; forceExitVisible.value = true; - debugLog('End forceExitPartialHandler'); }; const cancelOpenOrderHandler = (item: Trade) => { - debugLog('cancelOpenOrderHandler'); confirmExitText.value = `Cancel open order for trade ${item.trade_id} (Pair ${item.pair})?`; feTrade.value = item; confirmExitValue.value = ModalReasons.cancelOpenOrder; removeTradeVisible.value = true; - debugLog('End cancelOpenOrderHandler'); }; const handleContextMenuEvent = (item, index, event) => {