From 3a6786b39d447e187fd5051b6dded7ab9058bd25 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 28 Jul 2020 20:39:58 +0200 Subject: [PATCH] Load from strategy should be part of plotconfig --- src/components/ftbot/PlotConfigurator.vue | 13 +++++++++++++ src/store/modules/ftbot.ts | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/components/ftbot/PlotConfigurator.vue b/src/components/ftbot/PlotConfigurator.vue index 95b4d7ac..49475b84 100644 --- a/src/components/ftbot/PlotConfigurator.vue +++ b/src/components/ftbot/PlotConfigurator.vue @@ -60,6 +60,10 @@ Add Load + + Load from strategy + + diff --git a/src/store/modules/ftbot.ts b/src/store/modules/ftbot.ts index 02a3fbbc..c943d6c2 100644 --- a/src/store/modules/ftbot.ts +++ b/src/store/modules/ftbot.ts @@ -40,7 +40,7 @@ export default { detailTradeId: null, candleData: {}, history: {}, - plotConfig: {}, + strategyPlotConfig: {}, customPlotConfig: { ...EMPTY_PLOTCONFIG }, }, getters: { @@ -105,7 +105,7 @@ export default { state.history = { [`${pair}__${timeframe}`]: data }; }, updatePlotConfig(state, plotConfig: PlotConfig) { - state.plotConfig = plotConfig; + state.strategyPlotConfig = plotConfig; }, saveCustomPlotConfig(state, plotConfig: PlotConfig) { state.customPlotConfig = plotConfig;