mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-21 23:53:52 +00:00
Remove temporary DebugLog
This commit is contained in:
parent
6b21a1c7ee
commit
3dc3021b08
|
@ -34,7 +34,6 @@ const cancelOpenOrderHandler = (item: Trade) => {
|
||||||
class="btn-xs"
|
class="btn-xs"
|
||||||
size="sm"
|
size="sm"
|
||||||
title="Actions"
|
title="Actions"
|
||||||
href="#"
|
|
||||||
@click="popoverOpen = !popoverOpen"
|
@click="popoverOpen = !popoverOpen"
|
||||||
>
|
>
|
||||||
<ActionIcon :size="16" title="Actions" />
|
<ActionIcon :size="16" title="Actions" />
|
||||||
|
|
|
@ -140,14 +140,6 @@ const rows = computed(() => {
|
||||||
return props.trades.length;
|
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<string, string | Function>[] = [
|
const tableFields: Record<string, string | Function>[] = [
|
||||||
props.multiBotView ? { key: 'botName', label: 'Bot' } : {},
|
props.multiBotView ? { key: 'botName', label: 'Bot' } : {},
|
||||||
{ key: 'trade_id', label: 'ID' },
|
{ key: 'trade_id', label: 'ID' },
|
||||||
|
@ -181,17 +173,14 @@ const tableFields: Record<string, string | Function>[] = [
|
||||||
];
|
];
|
||||||
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) => {
|
||||||
debugLog('forceExitHandler');
|
|
||||||
feTrade.value = item;
|
feTrade.value = item;
|
||||||
confirmExitValue.value = ModalReasons.forceExit;
|
confirmExitValue.value = ModalReasons.forceExit;
|
||||||
confirmExitText.value = `Really exit trade ${item.trade_id} (Pair ${item.pair}) using ${ordertype} Order?`;
|
confirmExitText.value = `Really exit trade ${item.trade_id} (Pair ${item.pair}) using ${ordertype} Order?`;
|
||||||
removeTradeVisible.value = true;
|
removeTradeVisible.value = true;
|
||||||
feOrderType.value = ordertype;
|
feOrderType.value = ordertype;
|
||||||
debugLog('End forceExitHandler');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const forceExitExecuter = () => {
|
const forceExitExecuter = () => {
|
||||||
debugLog('forceExitExecuter');
|
|
||||||
if (confirmExitValue.value === ModalReasons.removeTrade) {
|
if (confirmExitValue.value === ModalReasons.removeTrade) {
|
||||||
const payload: MultiDeletePayload = {
|
const payload: MultiDeletePayload = {
|
||||||
tradeid: String(feTrade.value.trade_id),
|
tradeid: String(feTrade.value.trade_id),
|
||||||
|
@ -222,32 +211,25 @@ const forceExitExecuter = () => {
|
||||||
|
|
||||||
feOrderType.value = undefined;
|
feOrderType.value = undefined;
|
||||||
removeTradeVisible.value = false;
|
removeTradeVisible.value = false;
|
||||||
debugLog('End forceExitExecuter');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const removeTradeHandler = (item: Trade) => {
|
const removeTradeHandler = (item: Trade) => {
|
||||||
debugLog('removeTradeHandler');
|
|
||||||
confirmExitText.value = `Really delete trade ${item.trade_id} (Pair ${item.pair})?`;
|
confirmExitText.value = `Really delete trade ${item.trade_id} (Pair ${item.pair})?`;
|
||||||
confirmExitValue.value = ModalReasons.removeTrade;
|
confirmExitValue.value = ModalReasons.removeTrade;
|
||||||
feTrade.value = item;
|
feTrade.value = item;
|
||||||
removeTradeVisible.value = true;
|
removeTradeVisible.value = true;
|
||||||
debugLog('End removeTradeHandler');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const forceExitPartialHandler = (item: Trade) => {
|
const forceExitPartialHandler = (item: Trade) => {
|
||||||
debugLog('forceExitPartialHandler');
|
|
||||||
feTrade.value = item;
|
feTrade.value = item;
|
||||||
forceExitVisible.value = true;
|
forceExitVisible.value = true;
|
||||||
debugLog('End forceExitPartialHandler');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const cancelOpenOrderHandler = (item: Trade) => {
|
const cancelOpenOrderHandler = (item: Trade) => {
|
||||||
debugLog('cancelOpenOrderHandler');
|
|
||||||
confirmExitText.value = `Cancel open order for trade ${item.trade_id} (Pair ${item.pair})?`;
|
confirmExitText.value = `Cancel open order for trade ${item.trade_id} (Pair ${item.pair})?`;
|
||||||
feTrade.value = item;
|
feTrade.value = item;
|
||||||
confirmExitValue.value = ModalReasons.cancelOpenOrder;
|
confirmExitValue.value = ModalReasons.cancelOpenOrder;
|
||||||
removeTradeVisible.value = true;
|
removeTradeVisible.value = true;
|
||||||
debugLog('End cancelOpenOrderHandler');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleContextMenuEvent = (item, index, event) => {
|
const handleContextMenuEvent = (item, index, event) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user