From 11ac1f8aba480ba5ae95c3af607309524576f113 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 1 Nov 2021 19:53:06 +0100 Subject: [PATCH] fix plot creator closes #561 --- src/components/charts/PlotConfigurator.vue | 6 ++++-- src/components/charts/PlotIndicator.vue | 17 +++++++++++++---- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/components/charts/PlotConfigurator.vue b/src/components/charts/PlotConfigurator.vue index bfa905ee..ed31c3c1 100644 --- a/src/components/charts/PlotConfigurator.vue +++ b/src/components/charts/PlotConfigurator.vue @@ -37,6 +37,7 @@ variant="primary" title="Add indicator to plot" size="sm" + :disabled="addNewIndicator" @click="addNewIndicator = !addNewIndicator" > Add new indicator @@ -54,6 +55,7 @@ ) { - console.log('newValue', newValue); + // console.log('newValue', newValue); const name = Object.keys(newValue)[0]; // this.currentPlotConfig[this.selIndicatorName] = { ...newValue[name] }; // this.emitPlotConfig(); @@ -316,7 +318,7 @@ export default class PlotConfigurator extends Vue { } savePlotConfig() { - this.saveCustomPlotConfig({ [this.plotConfigName]: this.plotConfig }); + this.saveCustomPlotConfig({ [this.plotConfigNameLoc]: this.plotConfig }); } loadPlotConfig() { diff --git a/src/components/charts/PlotIndicator.vue b/src/components/charts/PlotIndicator.vue index ce2092d5..2322f076 100644 --- a/src/components/charts/PlotIndicator.vue +++ b/src/components/charts/PlotIndicator.vue @@ -45,12 +45,19 @@
- - Add new indicator + + Save indicator