From 7cb070975dc51e7b17155862ac3eee8af5b18f47 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 13 Apr 2022 07:24:36 +0200 Subject: [PATCH] Add botstatusAvailable as getter --- src/store/modules/ftbot/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/store/modules/ftbot/index.ts b/src/store/modules/ftbot/index.ts index e36ebb49..bf4ce12a 100644 --- a/src/store/modules/ftbot/index.ts +++ b/src/store/modules/ftbot/index.ts @@ -59,6 +59,7 @@ export enum BotStoreGetters { autoRefresh = 'autoRefresh', refreshNow = 'refreshNow', refreshing = 'refreshing', + botStatusAvailable = 'botStatusAvailable', openTrades = 'openTrades', openTradeCount = 'openTradeCount', @@ -185,14 +186,16 @@ export function createBotSubStore(botId: string, botName: string) { (selectedBot === botId || bgRefresh) && getters.autoRefresh && getters.isBotOnline && - state.botStatusAvailable && + getters.botStatusAvailable && !getters.isWebserverMode ) { return true; } return false; }, - + [BotStoreGetters.botStatusAvailable](state: FtbotStateType) { + return state.botStatusAvailable; + }, [BotStoreGetters.plotConfig](state: FtbotStateType) { return state.customPlotConfig[state.plotConfigName] || { ...EMPTY_PLOTCONFIG }; },