Small plot improvements

This commit is contained in:
Matthias 2023-05-06 15:07:09 +02:00
parent 46a89c0e27
commit 49f88c28fc
2 changed files with 9 additions and 4 deletions

View File

@ -15,7 +15,9 @@
<b-input-group size="sm">
<b-form-input id="newSubPlot" v-model="newSubplotName" class="addPlot"></b-form-input>
<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-input-group-append>
</b-input-group>
@ -103,7 +105,7 @@
size="sm"
title="Show configuration for easy transfer to a strategy"
@click="showConfig = !showConfig"
>Show</b-button
>{{ showConfig ? 'Hide' : 'Show' }}</b-button
>
<b-button
@ -143,6 +145,7 @@ import { PlotConfig, EMPTY_PLOTCONFIG, IndicatorConfig } from '@/types';
import PlotConfigSelect from '@/components/charts/PlotConfigSelect.vue';
import PlotIndicator from '@/components/charts/PlotIndicator.vue';
import { showAlert } from '@/stores/alerts';
import AddIcon from 'vue-material-design-icons/PlusBoxOutline.vue';
import { computed, ref, onMounted, onUnmounted } from 'vue';
import { useBotStore } from '@/stores/ftbotwrapper';

View File

@ -28,7 +28,6 @@
v-model="graphType"
size="sm"
:options="availableGraphTypes"
@change="emitIndicator()"
>
</b-form-select>
</b-form-group>
@ -139,9 +138,12 @@ watch(
graphType.value = props.modelValue[selAvailableIndicator.value].type || ChartType.line;
}
},
{
immediate: true,
},
);
watch(selColor, () => {
watch([selColor, graphType], () => {
if (!props.addNew) {
emitIndicator();
}