From 55d8e75b03e38397dcdd2b094144923f42a9122b Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 12 Apr 2022 20:07:23 +0200 Subject: [PATCH] Fix bad startup behaviour in backtest mode --- src/store/modules/ftbot/index.ts | 2 ++ src/store/modules/ftbot/state.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/store/modules/ftbot/index.ts b/src/store/modules/ftbot/index.ts index 3eff960d..502cd9f0 100644 --- a/src/store/modules/ftbot/index.ts +++ b/src/store/modules/ftbot/index.ts @@ -181,6 +181,7 @@ export function createBotSubStore(botId: string, botName: string) { (selectedBot === botId || bgRefresh) && getters.autoRefresh && getters.isBotOnline && + state.botStatusAvailable && !getters.isWebserverMode ) { return true; @@ -393,6 +394,7 @@ export function createBotSubStore(botId: string, botName: string) { }, updateState(state: FtbotStateType, botState: BotState) { state.botState = botState; + state.botStatusAvailable = true; }, updateVersion(state: FtbotStateType, version) { state.version = version.version; diff --git a/src/store/modules/ftbot/state.ts b/src/store/modules/ftbot/state.ts index bcd5a0f5..5ac08d17 100644 --- a/src/store/modules/ftbot/state.ts +++ b/src/store/modules/ftbot/state.ts @@ -20,6 +20,7 @@ import { export interface FtbotStateType { ping: string; + botStatusAvailable: boolean; isBotOnline: boolean; autoRefresh: boolean; refreshing: boolean; @@ -66,6 +67,7 @@ export interface FtbotStateType { const state = (): FtbotStateType => { return { ping: '', + botStatusAvailable: false, isBotOnline: false, autoRefresh: false, refreshing: false,