From 0c0399579e061e07a9a34131df1dbd845bd73248 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 13 Dec 2022 06:30:38 +0100 Subject: [PATCH] Disable load_from_strateegy button when bot is offline or in webserver mode --- src/components/charts/PlotConfigurator.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/charts/PlotConfigurator.vue b/src/components/charts/PlotConfigurator.vue index 658c129e..5a2e9d56 100644 --- a/src/components/charts/PlotConfigurator.vue +++ b/src/components/charts/PlotConfigurator.vue @@ -65,7 +65,13 @@
Load - + From strategy @@ -135,6 +141,7 @@ defineProps({ }); const plotStore = usePlotConfigStore(); +const botStore = useBotStore(); const plotConfig = ref(EMPTY_PLOTCONFIG); @@ -284,7 +291,6 @@ const resetConfig = () => { }; const loadPlotConfigFromStrategy = async () => { try { - const botStore = useBotStore(); await botStore.activeBot.getStrategyPlotConfig(); if (botStore.activeBot.strategyPlotConfig) { plotConfig.value = botStore.activeBot.strategyPlotConfig;