add stake currency field

This commit is contained in:
Tako 2023-06-09 15:24:07 +00:00
parent e6e64f6ec8
commit 1dabe91226
2 changed files with 22 additions and 10 deletions

View File

@ -32,7 +32,12 @@
><i-mdi-content-copy
/></b-button>
</div>
<b-input-group v-for="(item, i) in pairlistStore.config.blacklist" :key="i" class="mb-2">
<b-input-group
v-for="(item, i) in pairlistStore.config.blacklist"
:key="i"
class="mb-2"
size="sm"
>
<b-form-input v-model="pairlistStore.config.blacklist[i]" />
<b-input-group-append>
<b-button size="sm" @click="pairlistStore.removeFromBlacklist(i)"
@ -40,7 +45,7 @@
/></b-button>
</b-input-group-append>
</b-input-group>
<b-button @click="pairlistStore.addToBlacklist()">Add</b-button>
<b-button size="sm" @click="pairlistStore.addToBlacklist()">Add</b-button>
</b-card-body>
</b-collapse>
</b-card>

View File

@ -26,14 +26,21 @@
</b-list-group>
<div class="d-flex flex-column flex-fill">
<PairlistConfigActions />
<b-form-checkbox v-model="pairlistStore.customExchange" class="mb-2"
>Custom Exchange</b-form-checkbox
>
<exchange-select
v-if="pairlistStore.customExchange"
v-model="pairlistStore.selectedExchange"
class="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="mb-2">
<b-form-checkbox v-model="pairlistStore.customExchange" class="mb-2"
>Custom Exchange</b-form-checkbox
>
<exchange-select
v-if="pairlistStore.customExchange"
v-model="pairlistStore.selectedExchange"
/>
</div>
<PairlistConfigBlacklist />
<b-alert
:model-value="