mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Fix subtle bug whe clicking around oddly
This commit is contained in:
parent
49f88c28fc
commit
f9e9b9bfda
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user