mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Update stuff for bootstrap-vue update
This commit is contained in:
parent
9a688b6e3f
commit
fbf85c63c0
|
@ -18,35 +18,35 @@
|
|||
<span>{{ row.value }}</span>
|
||||
</div>
|
||||
</template>
|
||||
<template #cell(profitOpen)="row">
|
||||
<template #cell(profitOpen)="{ item }">
|
||||
<profit-pill
|
||||
v-if="row.item.profitOpen && row.item.botId != 'Summary'"
|
||||
:profit-ratio="row.item.profitOpenRatio"
|
||||
:profit-abs="row.item.profitOpen"
|
||||
:stake-currency="row.item.stakeCurrency"
|
||||
v-if="item.profitOpen && item.botId != 'Summary'"
|
||||
:profit-ratio="item.profitOpenRatio"
|
||||
:profit-abs="item.profitOpen"
|
||||
:stake-currency="item.stakeCurrency"
|
||||
/>
|
||||
</template>
|
||||
<template #cell(profitClosed)="row">
|
||||
<template #cell(profitClosed)="{ item }">
|
||||
<profit-pill
|
||||
v-if="row.item.profitClosed && row.item.botId != 'Summary'"
|
||||
:profit-ratio="row.item.profitClosedRatio"
|
||||
:profit-abs="row.item.profitClosed"
|
||||
:stake-currency="row.item.stakeCurrency"
|
||||
v-if="item.profitClosed && item.botId != 'Summary'"
|
||||
:profit-ratio="item.profitClosedRatio"
|
||||
:profit-abs="item.profitClosed"
|
||||
:stake-currency="item.stakeCurrency"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<template #cell(balance)="row">
|
||||
<div v-if="row.item.balance">
|
||||
<span :title="row.item.stakeCurrency"
|
||||
>{{ formatPrice(row.item.balance, row.item.stakeCurrencyDecimals) }}
|
||||
<template #cell(balance)="{ item }">
|
||||
<div v-if="item.balance">
|
||||
<span :title="item.stakeCurrency"
|
||||
>{{ formatPrice(item.balance, item.stakeCurrencyDecimals) }}
|
||||
</span>
|
||||
<span class="text-small">{{ row.item.stakeCurrency }}</span>
|
||||
<span class="text-small">{{ item.stakeCurrency }}</span>
|
||||
</div>
|
||||
</template>
|
||||
<template #cell(winVsLoss)="row">
|
||||
<div v-if="row.item.losses !== undefined">
|
||||
<span class="text-profit">{{ row.item.wins }}</span> /
|
||||
<span class="text-loss">{{ row.item.losses }}</span>
|
||||
<template #cell(winVsLoss)="{ item }">
|
||||
<div v-if="item.losses !== undefined">
|
||||
<span class="text-profit">{{ item.wins }}</span> /
|
||||
<span class="text-loss">{{ item.losses }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</b-table>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
class="btn-xs ms-1"
|
||||
size="sm"
|
||||
title="Delete trade"
|
||||
@click="removePairLock(row.item)"
|
||||
@click="removePairLock(row.item as unknown as Lock)"
|
||||
>
|
||||
<i-mdi-delete />
|
||||
</b-button>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
v-model="pairlistStore.configName"
|
||||
size="sm"
|
||||
:options="pairlistStore.savedConfigs.map((c) => c.name)"
|
||||
@change="(config) => pairlistStore.selectOrCreateConfig(config)"
|
||||
@change="(config) => pairlistStore.selectOrCreateConfig(config as string)"
|
||||
/>
|
||||
</edit-value>
|
||||
<b-button
|
||||
|
|
|
@ -26,12 +26,12 @@
|
|||
@row-clicked="onRowClicked"
|
||||
@row-selected="onRowSelected"
|
||||
>
|
||||
<template #cell(actions)="row">
|
||||
<template #cell(actions)="{ index, item }">
|
||||
<TradeActionsPopover
|
||||
:id="row.index"
|
||||
:trade="row.item"
|
||||
:id="index"
|
||||
:trade="item as unknown as Trade"
|
||||
:bot-api-version="botStore.activeBot.botApiVersion"
|
||||
@delete-trade="removeTradeHandler(row.item)"
|
||||
@delete-trade="removeTradeHandler(item as unknown as Trade)"
|
||||
@force-exit="forceExitHandler"
|
||||
@force-exit-partial="forceExitPartialHandler"
|
||||
@cancel-open-order="cancelOpenOrderHandler"
|
||||
|
@ -60,13 +60,13 @@
|
|||
{{ row.item.trading_mode !== 'spot' ? `(${row.item.leverage}x)` : '' }}
|
||||
</template>
|
||||
<template #cell(profit)="row">
|
||||
<trade-profit :trade="row.item" />
|
||||
<trade-profit :trade="(row.item as unknown as Trade)" />
|
||||
</template>
|
||||
<template #cell(open_timestamp)="row">
|
||||
<DateTimeTZ :date="row.item.open_timestamp" />
|
||||
<DateTimeTZ :date="(row.item as unknown as Trade).open_timestamp" />
|
||||
</template>
|
||||
<template #cell(close_timestamp)="row">
|
||||
<DateTimeTZ :date="row.item.close_timestamp" />
|
||||
<DateTimeTZ :date="(row.item as unknown as Trade).close_timestamp ?? 0" />
|
||||
</template>
|
||||
</b-table>
|
||||
<div class="w-100 d-flex justify-content-between">
|
||||
|
|
Loading…
Reference in New Issue
Block a user