mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Improve "settings" box
This commit is contained in:
parent
e98701b99e
commit
1842d89284
|
@ -1,16 +1,22 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="w-100 d-flex">
|
<div class="w-100 d-flex">
|
||||||
<b-form-select id="exchange-select" v-model="exchangeModel.exchange" :options="exchangeList">
|
<b-form-select
|
||||||
|
id="exchange-select"
|
||||||
|
v-model="exchangeModel.exchange"
|
||||||
|
size="sm"
|
||||||
|
:options="exchangeList"
|
||||||
|
>
|
||||||
</b-form-select>
|
</b-form-select>
|
||||||
<b-form-select
|
<b-form-select
|
||||||
id="tradeMode-select"
|
id="tradeMode-select"
|
||||||
v-model="exchangeModel.trade_mode"
|
v-model="exchangeModel.trade_mode"
|
||||||
|
size="sm"
|
||||||
:options="tradeModes"
|
:options="tradeModes"
|
||||||
:disabled="tradeModes.length < 2"
|
:disabled="tradeModes.length < 2"
|
||||||
>
|
>
|
||||||
</b-form-select>
|
</b-form-select>
|
||||||
<div class="ms-2">
|
<div class="ms-2">
|
||||||
<b-button @click="botStore.activeBot.getExchangeList">
|
<b-button size="sm" @click="botStore.activeBot.getExchangeList">
|
||||||
<i-mdi-refresh />
|
<i-mdi-refresh />
|
||||||
</b-button>
|
</b-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -26,20 +26,21 @@
|
||||||
</b-list-group>
|
</b-list-group>
|
||||||
<div class="d-flex flex-column flex-fill">
|
<div class="d-flex flex-column flex-fill">
|
||||||
<PairlistConfigActions />
|
<PairlistConfigActions />
|
||||||
|
<div class="border rounded-1 p-2 mb-2">
|
||||||
|
<div class="d-flex align-items-center gap-2 my-2">
|
||||||
|
<span class="col-auto">Stake currency: </span>
|
||||||
|
<b-form-input v-model="pairlistStore.stakeCurrency" size="sm" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="d-flex align-items-center gap-2 my-2">
|
<div class="mb-2 border rounded-1 p-2 text-start">
|
||||||
<span class="col-auto">Stake currency: </span>
|
<b-form-checkbox v-model="pairlistStore.customExchange" class="mb-2">
|
||||||
<b-form-input v-model="pairlistStore.stakeCurrency" size="sm" />
|
Custom Exchange
|
||||||
</div>
|
</b-form-checkbox>
|
||||||
|
<exchange-select
|
||||||
<div class="mb-2">
|
v-if="pairlistStore.customExchange"
|
||||||
<b-form-checkbox v-model="pairlistStore.customExchange" class="mb-2"
|
v-model="pairlistStore.selectedExchange"
|
||||||
>Custom Exchange</b-form-checkbox
|
/>
|
||||||
>
|
</div>
|
||||||
<exchange-select
|
|
||||||
v-if="pairlistStore.customExchange"
|
|
||||||
v-model="pairlistStore.selectedExchange"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<PairlistConfigBlacklist />
|
<PairlistConfigBlacklist />
|
||||||
<b-alert
|
<b-alert
|
||||||
|
@ -53,7 +54,7 @@
|
||||||
</b-alert>
|
</b-alert>
|
||||||
<div
|
<div
|
||||||
ref="pairlistConfigsEl"
|
ref="pairlistConfigsEl"
|
||||||
class="d-flex flex-column flex-grow-1 position-relative"
|
class="d-flex flex-column flex-grow-1 position-relative border rounded-1 p-1"
|
||||||
:class="{ empty: configEmpty }"
|
:class="{ empty: configEmpty }"
|
||||||
>
|
>
|
||||||
<PairlistConfigItem
|
<PairlistConfigItem
|
||||||
|
@ -188,12 +189,6 @@ watch(
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty {
|
.empty {
|
||||||
border: 3px dashed rgba(255, 255, 255, 0.65);
|
|
||||||
|
|
||||||
[data-bs-theme='light'] & {
|
|
||||||
border: 3px dashed rgba(0, 0, 0, 0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
content: 'Drag pairlist here';
|
content: 'Drag pairlist here';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user