mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-14 04:03:51 +00:00
hide current config
This commit is contained in:
parent
c3378f0f26
commit
e6e64f6ec8
|
@ -27,11 +27,7 @@
|
||||||
<b-card-body>
|
<b-card-body>
|
||||||
<div class="d-flex mb-4 align-items-center gap-2">
|
<div class="d-flex mb-4 align-items-center gap-2">
|
||||||
<span class="col-auto">Copy from:</span
|
<span class="col-auto">Copy from:</span
|
||||||
><b-form-select
|
><b-form-select v-model="copyFromConfig" size="sm" :options="configNames" />
|
||||||
v-model="copyFromConfig"
|
|
||||||
size="sm"
|
|
||||||
:options="pairlistStore.savedConfigs.map((c) => c.name)"
|
|
||||||
/>
|
|
||||||
<b-button title="Copy" size="sm" @click="pairlistStore.duplicateBlacklist(copyFromConfig)"
|
<b-button title="Copy" size="sm" @click="pairlistStore.duplicateBlacklist(copyFromConfig)"
|
||||||
><i-mdi-content-copy
|
><i-mdi-content-copy
|
||||||
/></b-button>
|
/></b-button>
|
||||||
|
@ -50,10 +46,14 @@
|
||||||
</b-card>
|
</b-card>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import { usePairlistConfigStore } from '@/stores/pairlistConfig';
|
import { usePairlistConfigStore } from '@/stores/pairlistConfig';
|
||||||
const pairlistStore = usePairlistConfigStore();
|
const pairlistStore = usePairlistConfigStore();
|
||||||
const copyFromConfig = ref(pairlistStore.config.name);
|
const copyFromConfig = ref('');
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
|
|
||||||
|
const configNames = computed(() =>
|
||||||
|
pairlistStore.savedConfigs.filter((c) => c.name !== pairlistStore.config.name).map((c) => c.name),
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped></style>
|
<style lang="scss" scoped></style>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user