mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 05:25:17 +00:00
Update logic to new eslint rules
This commit is contained in:
parent
206d6babfc
commit
a43bab3aa7
|
@ -12,7 +12,9 @@
|
||||||
<div class="d-flex flex-row">
|
<div class="d-flex flex-row">
|
||||||
<b-form-checkbox
|
<b-form-checkbox
|
||||||
v-if="row.item.botId && botStore.botCount > 1"
|
v-if="row.item.botId && botStore.botCount > 1"
|
||||||
v-model="botStore.botStores[(row.item as unknown as ComparisonTableItems).botId ?? ''].isSelected"
|
v-model="
|
||||||
|
botStore.botStores[(row.item as unknown as ComparisonTableItems).botId ?? ''].isSelected
|
||||||
|
"
|
||||||
title="Show bot in Dashboard"
|
title="Show bot in Dashboard"
|
||||||
/>
|
/>
|
||||||
<span>{{ row.value }}</span>
|
<span>{{ row.value }}</span>
|
||||||
|
|
|
@ -50,9 +50,8 @@ const exchangeList = computed(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const tradeModesTyped = computed(() => {
|
const tradeModesTyped = computed(() => {
|
||||||
const val = botStore.activeBot.exchangeList.find(
|
const val = botStore.activeBot.exchangeList.find((ex) => ex.name === exchangeModel.value.exchange)
|
||||||
(ex) => ex.name === exchangeModel.value.exchange,
|
?.trade_modes;
|
||||||
)?.trade_modes;
|
|
||||||
return val ?? [];
|
return val ?? [];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
{{ row.item.trading_mode !== 'spot' ? `(${row.item.leverage}x)` : '' }}
|
{{ row.item.trading_mode !== 'spot' ? `(${row.item.leverage}x)` : '' }}
|
||||||
</template>
|
</template>
|
||||||
<template #cell(profit)="row">
|
<template #cell(profit)="row">
|
||||||
<trade-profit :trade="(row.item as unknown as Trade)" />
|
<trade-profit :trade="row.item as unknown as Trade" />
|
||||||
</template>
|
</template>
|
||||||
<template #cell(open_timestamp)="row">
|
<template #cell(open_timestamp)="row">
|
||||||
<DateTimeTZ :date="(row.item as unknown as Trade).open_timestamp" />
|
<DateTimeTZ :date="(row.item as unknown as Trade).open_timestamp" />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user