mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
improved pairlist actions
This commit is contained in:
parent
6c89bb8513
commit
b6af5c63d3
|
@ -1,46 +1,50 @@
|
||||||
<template>
|
<template>
|
||||||
<b-input-group class="mb-2">
|
<div class="d-flex flex-row mb-2 gap-2">
|
||||||
<template #prepend>
|
<b-button
|
||||||
<b-button
|
title="Delete config"
|
||||||
:disabled="!pairlistStore.isSavedConfig"
|
:disabled="!pairlistStore.isSavedConfig"
|
||||||
variant="danger"
|
variant="dark"
|
||||||
@click="pairlistStore.deleteConfig()"
|
@click="pairlistStore.deleteConfig()"
|
||||||
><i-mdi-close class="fs-4"
|
><i-mdi-delete width="24" height="24"
|
||||||
/></b-button>
|
/></b-button>
|
||||||
<b-dropdown text="Configs">
|
|
||||||
<b-dropdown-item
|
|
||||||
v-for="config in pairlistStore.savedConfigs"
|
|
||||||
:key="config.name"
|
|
||||||
@click="pairlistStore.selectConfig(config)"
|
|
||||||
>{{ config.name }}</b-dropdown-item
|
|
||||||
>
|
|
||||||
</b-dropdown>
|
|
||||||
<b-button :disabled="!pairlistStore.config.name" @click="pairlistStore.saveConfig()"
|
|
||||||
><i-mdi-content-save class="fs-4"
|
|
||||||
/></b-button>
|
|
||||||
<b-button
|
|
||||||
:disabled="pairlistStore.config.pairlists.length == 0"
|
|
||||||
@click="pairlistStore.newConfig()"
|
|
||||||
><i-mdi-plus class="fs-4"
|
|
||||||
/></b-button>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<b-form-input v-model="pairlistStore.config.name" placeholder="Configuration name..." />
|
<b-form-input v-model="pairlistStore.config.name" placeholder="Configuration name..." />
|
||||||
|
|
||||||
<template #append>
|
<b-button-group>
|
||||||
|
<b-dropdown variant="dark" title="Saved configs">
|
||||||
|
<b-dropdown-item-button
|
||||||
|
v-for="config in pairlistStore.savedConfigs"
|
||||||
|
:key="config.name"
|
||||||
|
@click="pairlistStore.selectConfig(config)"
|
||||||
|
>{{ config.name }}</b-dropdown-item-button
|
||||||
|
>
|
||||||
|
</b-dropdown>
|
||||||
<b-button
|
<b-button
|
||||||
:disabled="pairlistStore.evaluating || !pairlistStore.pairlistValid"
|
title="Save config"
|
||||||
variant="primary"
|
variant="dark"
|
||||||
size="lg"
|
:disabled="!pairlistStore.config.name"
|
||||||
squared
|
@click="pairlistStore.saveConfig()"
|
||||||
class="evaluate"
|
><i-mdi-content-save width="24" height="24"
|
||||||
@click="pairlistStore.startPairlistEvaluation()"
|
/></b-button>
|
||||||
>
|
</b-button-group>
|
||||||
<b-spinner v-if="pairlistStore.evaluating" small></b-spinner>
|
<b-button
|
||||||
<span>{{ pairlistStore.evaluating ? 'Evaluating...' : 'Evaluate' }}</span>
|
title="New config"
|
||||||
</b-button>
|
variant="dark"
|
||||||
</template>
|
:disabled="pairlistStore.config.pairlists.length == 0"
|
||||||
</b-input-group>
|
@click="pairlistStore.newConfig()"
|
||||||
|
><i-mdi-plus width="24" height="24"
|
||||||
|
/></b-button>
|
||||||
|
<b-button
|
||||||
|
title="Evaluate pairlist"
|
||||||
|
:disabled="pairlistStore.evaluating || !pairlistStore.pairlistValid"
|
||||||
|
variant="primary"
|
||||||
|
class="col-lg-2"
|
||||||
|
@click="pairlistStore.startPairlistEvaluation()"
|
||||||
|
>
|
||||||
|
<b-spinner v-if="pairlistStore.evaluating" small></b-spinner>
|
||||||
|
<span>{{ pairlistStore.evaluating ? '' : 'Evaluate' }}</span>
|
||||||
|
</b-button>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { usePairlistConfigStore } from '@/stores/pairlistConfig';
|
import { usePairlistConfigStore } from '@/stores/pairlistConfig';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user