mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-11 02:33:51 +00:00
Fix bad startup behaviour in backtest mode
This commit is contained in:
parent
d42f40dea9
commit
55d8e75b03
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user