mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Small plot improvements
This commit is contained in:
parent
46a89c0e27
commit
49f88c28fc
|
@ -15,7 +15,9 @@
|
||||||
<b-input-group size="sm">
|
<b-input-group size="sm">
|
||||||
<b-form-input id="newSubPlot" v-model="newSubplotName" class="addPlot"></b-form-input>
|
<b-form-input id="newSubPlot" v-model="newSubplotName" class="addPlot"></b-form-input>
|
||||||
<b-input-group-append>
|
<b-input-group-append>
|
||||||
<b-button variant="primary" :disabled="!newSubplotName" @click="addSubplot">+</b-button>
|
<b-button variant="primary" :disabled="!newSubplotName" @click="addSubplot"
|
||||||
|
><AddIcon :size="16"
|
||||||
|
/></b-button>
|
||||||
<b-button v-if="selSubPlot && selSubPlot != 'main_plot'" @click="delSubplot">-</b-button>
|
<b-button v-if="selSubPlot && selSubPlot != 'main_plot'" @click="delSubplot">-</b-button>
|
||||||
</b-input-group-append>
|
</b-input-group-append>
|
||||||
</b-input-group>
|
</b-input-group>
|
||||||
|
@ -103,7 +105,7 @@
|
||||||
size="sm"
|
size="sm"
|
||||||
title="Show configuration for easy transfer to a strategy"
|
title="Show configuration for easy transfer to a strategy"
|
||||||
@click="showConfig = !showConfig"
|
@click="showConfig = !showConfig"
|
||||||
>Show</b-button
|
>{{ showConfig ? 'Hide' : 'Show' }}</b-button
|
||||||
>
|
>
|
||||||
|
|
||||||
<b-button
|
<b-button
|
||||||
|
@ -143,6 +145,7 @@ import { PlotConfig, EMPTY_PLOTCONFIG, IndicatorConfig } from '@/types';
|
||||||
import PlotConfigSelect from '@/components/charts/PlotConfigSelect.vue';
|
import PlotConfigSelect from '@/components/charts/PlotConfigSelect.vue';
|
||||||
import PlotIndicator from '@/components/charts/PlotIndicator.vue';
|
import PlotIndicator from '@/components/charts/PlotIndicator.vue';
|
||||||
import { showAlert } from '@/stores/alerts';
|
import { showAlert } from '@/stores/alerts';
|
||||||
|
import AddIcon from 'vue-material-design-icons/PlusBoxOutline.vue';
|
||||||
|
|
||||||
import { computed, ref, onMounted, onUnmounted } from 'vue';
|
import { computed, ref, onMounted, onUnmounted } from 'vue';
|
||||||
import { useBotStore } from '@/stores/ftbotwrapper';
|
import { useBotStore } from '@/stores/ftbotwrapper';
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
v-model="graphType"
|
v-model="graphType"
|
||||||
size="sm"
|
size="sm"
|
||||||
:options="availableGraphTypes"
|
:options="availableGraphTypes"
|
||||||
@change="emitIndicator()"
|
|
||||||
>
|
>
|
||||||
</b-form-select>
|
</b-form-select>
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
|
@ -139,9 +138,12 @@ watch(
|
||||||
graphType.value = props.modelValue[selAvailableIndicator.value].type || ChartType.line;
|
graphType.value = props.modelValue[selAvailableIndicator.value].type || ChartType.line;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
immediate: true,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
watch(selColor, () => {
|
watch([selColor, graphType], () => {
|
||||||
if (!props.addNew) {
|
if (!props.addNew) {
|
||||||
emitIndicator();
|
emitIndicator();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user