mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 18:23:50 +00:00
Ensure balance table renders properly
This commit is contained in:
parent
ca15512598
commit
ccae419ed7
|
@ -33,23 +33,26 @@
|
|||
</p>
|
||||
<b-table class="table-sm" :items="balanceCurrencies" :fields="tableFields">
|
||||
<template #custom-foot>
|
||||
<td><strong>Total</strong></td>
|
||||
<td>
|
||||
<td class="pt-1"><strong>Total</strong></td>
|
||||
<td class="pt-1">
|
||||
<span
|
||||
class="font-italic"
|
||||
:title="`Increase over initial capital of ${formatCurrency(
|
||||
botStore.activeBot.balance.starting_capital,
|
||||
)} ${botStore.activeBot.balance.stake}`"
|
||||
>{{ formatPercent(botStore.activeBot.balance.starting_capital_ratio) }}</span
|
||||
>
|
||||
{{ formatPercent(botStore.activeBot.balance.starting_capital_ratio) }}
|
||||
</span>
|
||||
</td>
|
||||
<!-- this is a computed prop that adds up all the expenses in the visible rows -->
|
||||
<td>
|
||||
<strong>{{
|
||||
showBotOnly && canUseBotBalance
|
||||
? formatCurrency(botStore.activeBot.balance.total_bot)
|
||||
: formatCurrency(botStore.activeBot.balance.total)
|
||||
}}</strong>
|
||||
<td class="pt-1">
|
||||
<strong>
|
||||
{{
|
||||
showBotOnly && canUseBotBalance
|
||||
? formatCurrency(botStore.activeBot.balance.total_bot)
|
||||
: formatCurrency(botStore.activeBot.balance.total)
|
||||
}}
|
||||
</strong>
|
||||
</td>
|
||||
</template>
|
||||
</b-table>
|
||||
|
|
Loading…
Reference in New Issue
Block a user