mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Extract plotConfigSelect to separate view
This commit is contained in:
parent
4599fcb14c
commit
1c81f45d84
|
@ -35,13 +35,7 @@
|
|||
>
|
||||
|
||||
<div class="ms-2">
|
||||
<b-form-select
|
||||
v-model="plotStore.plotConfigName"
|
||||
:options="plotStore.availablePlotConfigNames"
|
||||
size="sm"
|
||||
@change="plotStore.plotConfigChanged"
|
||||
>
|
||||
</b-form-select>
|
||||
<plot-config-select></plot-config-select>
|
||||
</div>
|
||||
|
||||
<div class="ms-2 me-0 me-md-1">
|
||||
|
@ -94,6 +88,7 @@
|
|||
import { Trade, PairHistory, LoadingStatus, ChartSliderPosition } from '@/types';
|
||||
import CandleChart from '@/components/charts/CandleChart.vue';
|
||||
import PlotConfigurator from '@/components/charts/PlotConfigurator.vue';
|
||||
import PlotConfigSelect from '@/components/charts/PlotConfigSelect.vue';
|
||||
import vSelect from 'vue-select';
|
||||
import { useSettingsStore } from '@/stores/settings';
|
||||
import { usePlotConfigStore } from '@/stores/plotConfig';
|
||||
|
|
17
src/components/charts/PlotConfigSelect.vue
Normal file
17
src/components/charts/PlotConfigSelect.vue
Normal file
|
@ -0,0 +1,17 @@
|
|||
<template>
|
||||
<b-form-select
|
||||
v-model="plotStore.plotConfigName"
|
||||
:options="plotStore.availablePlotConfigNames"
|
||||
size="sm"
|
||||
@change="plotStore.plotConfigChanged"
|
||||
>
|
||||
</b-form-select>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { usePlotConfigStore } from '@/stores/plotConfig';
|
||||
|
||||
const plotStore = usePlotConfigStore();
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
Loading…
Reference in New Issue
Block a user