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