mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 11:35:14 +00:00
Fix double-initial refresh
This commit is contained in:
parent
0467a18649
commit
d012e3166f
|
@ -142,12 +142,12 @@ export default function createBotStore(store) {
|
|||
selectBot({ commit }, botId: string) {
|
||||
commit('selectBot', botId);
|
||||
},
|
||||
allRefreshFrequent({ dispatch, getters }) {
|
||||
allRefreshFrequent({ dispatch, getters }, slow: boolean) {
|
||||
console.log('dispatching all frequent refreshes');
|
||||
getters.allAvailableBotsList.forEach((e) => {
|
||||
if (getters[`${e}/${BotStoreGetters.autoRefresh}`]) {
|
||||
console.log('refreshing ', e);
|
||||
dispatch(`${e}/${BotStoreActions.refreshFrequent}`);
|
||||
dispatch(`${e}/${BotStoreActions.refreshFrequent}`, slow);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -180,7 +180,7 @@ export default function createBotStore(store) {
|
|||
|
||||
startRefresh({ state, dispatch, commit }) {
|
||||
console.log('Starting automatic refresh.');
|
||||
dispatch('allRefreshFrequent');
|
||||
dispatch('allRefreshFrequent', false);
|
||||
|
||||
if (!state.refreshInterval) {
|
||||
// Set interval for refresh
|
||||
|
|
Loading…
Reference in New Issue
Block a user