From f9e9b9bfdae37ade07874442979ed1eb08238c9a Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 6 May 2023 15:10:35 +0200 Subject: [PATCH] Fix subtle bug whe clicking around oddly --- src/components/charts/PlotConfigurator.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/charts/PlotConfigurator.vue b/src/components/charts/PlotConfigurator.vue index 02e9708a..b0e1308b 100644 --- a/src/components/charts/PlotConfigurator.vue +++ b/src/components/charts/PlotConfigurator.vue @@ -147,7 +147,7 @@ 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 { computed, ref, onMounted, onUnmounted, watch } from 'vue'; import { useBotStore } from '@/stores/ftbotwrapper'; import { usePlotConfigStore } from '@/stores/plotConfig'; import { deepClone } from '@/shared/deepClone'; @@ -311,6 +311,11 @@ function savePlotConfig() { plotStore.saveCustomPlotConfig(plotConfigNameLoc.value, plotStore.editablePlotConfig); } +watch(selSubPlot, () => { + // Deselect Indicator when switching selected plot + selIndicatorName.value = ''; +}); + onMounted(() => { // Deep clone and assign to editable plotStore.editablePlotConfig = deepClone(plotStore.plotConfig);