mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-25 20:45:15 +00:00
Improve refresh logic
This commit is contained in:
parent
348cb8349b
commit
275bad172c
|
@ -217,7 +217,15 @@ watch(
|
||||||
() => botStore.activeBot.selectedPair,
|
() => botStore.activeBot.selectedPair,
|
||||||
() => {
|
() => {
|
||||||
botStore.activeBot.plotPair = botStore.activeBot.selectedPair;
|
botStore.activeBot.plotPair = botStore.activeBot.selectedPair;
|
||||||
refresh();
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => botStore.activeBot.plotPair,
|
||||||
|
() => {
|
||||||
|
if (!props.historicView) {
|
||||||
|
refresh();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -380,13 +380,14 @@ export function createBotSubStore(botId: string, botName: string) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
this.candleDataStatus = LoadingStatus.error;
|
this.candleDataStatus = LoadingStatus.error;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Error branch
|
||||||
|
const error = 'pair or timeframe not specified';
|
||||||
|
console.error(error);
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
reject(error);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
// Error branchs
|
|
||||||
const error = 'pair or timeframe not specified';
|
|
||||||
console.error(error);
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
reject(error);
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
async getPairHistory(payload: PairHistoryPayload) {
|
async getPairHistory(payload: PairHistoryPayload) {
|
||||||
if (payload.pair && payload.timeframe) {
|
if (payload.pair && payload.timeframe) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user