mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
Improve "recovery" behavior if UI is started before the bot is ready
This commit is contained in:
parent
0644a49ca8
commit
e26431c891
|
@ -133,7 +133,6 @@ export function createBotSubStore(botId: string, botName: string) {
|
|||
if (
|
||||
state.autoRefresh &&
|
||||
state.isBotOnline &&
|
||||
state.botStatusAvailable &&
|
||||
state.botState?.runmode !== RunModes.WEBSERVER
|
||||
) {
|
||||
return true;
|
||||
|
|
|
@ -218,7 +218,7 @@ export const useBotStore = defineStore('wrapper', {
|
|||
async allRefreshFrequent(forceUpdate = false) {
|
||||
const updates: Promise<unknown>[] = [];
|
||||
this.allBotStores.forEach(async (e) => {
|
||||
if (e.refreshNow && (this.globalAutoRefresh || forceUpdate)) {
|
||||
if (e.refreshNow && e.botStatusAvailable && (this.globalAutoRefresh || forceUpdate)) {
|
||||
updates.push(e.refreshFrequent());
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user