mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 05:25:17 +00:00
Satisfy Typechecking due to BTable's wrong typing
ref: https://github.com/bootstrap-vue-next/bootstrap-vue-next/issues/1305
This commit is contained in:
parent
fbf85c63c0
commit
2ccc6232cb
|
@ -12,7 +12,7 @@
|
||||||
<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.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>
|
||||||
|
@ -21,24 +21,29 @@
|
||||||
<template #cell(profitOpen)="{ item }">
|
<template #cell(profitOpen)="{ item }">
|
||||||
<profit-pill
|
<profit-pill
|
||||||
v-if="item.profitOpen && item.botId != 'Summary'"
|
v-if="item.profitOpen && item.botId != 'Summary'"
|
||||||
:profit-ratio="item.profitOpenRatio"
|
:profit-ratio="(item as unknown as ComparisonTableItems).profitOpenRatio"
|
||||||
:profit-abs="item.profitOpen"
|
:profit-abs="(item as unknown as ComparisonTableItems).profitOpen"
|
||||||
:stake-currency="item.stakeCurrency"
|
:stake-currency="(item as unknown as ComparisonTableItems).stakeCurrency"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #cell(profitClosed)="{ item }">
|
<template #cell(profitClosed)="{ item }">
|
||||||
<profit-pill
|
<profit-pill
|
||||||
v-if="item.profitClosed && item.botId != 'Summary'"
|
v-if="item.profitClosed && item.botId != 'Summary'"
|
||||||
:profit-ratio="item.profitClosedRatio"
|
:profit-ratio="(item as unknown as ComparisonTableItems).profitClosedRatio"
|
||||||
:profit-abs="item.profitClosed"
|
:profit-abs="(item as unknown as ComparisonTableItems).profitClosed"
|
||||||
:stake-currency="item.stakeCurrency"
|
:stake-currency="(item as unknown as ComparisonTableItems).stakeCurrency"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #cell(balance)="{ item }">
|
<template #cell(balance)="{ item }">
|
||||||
<div v-if="item.balance">
|
<div v-if="item.balance">
|
||||||
<span :title="item.stakeCurrency"
|
<span :title="(item as unknown as ComparisonTableItems).stakeCurrency"
|
||||||
>{{ formatPrice(item.balance, item.stakeCurrencyDecimals) }}
|
>{{
|
||||||
|
formatPrice(
|
||||||
|
(item as unknown as ComparisonTableItems).balance ?? 0,
|
||||||
|
(item as unknown as ComparisonTableItems).stakeCurrencyDecimals,
|
||||||
|
)
|
||||||
|
}}
|
||||||
</span>
|
</span>
|
||||||
<span class="text-small">{{ item.stakeCurrency }}</span>
|
<span class="text-small">{{ item.stakeCurrency }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user