mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-27 13:35:17 +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) {
|
selectBot({ commit }, botId: string) {
|
||||||
commit('selectBot', botId);
|
commit('selectBot', botId);
|
||||||
},
|
},
|
||||||
allRefreshFrequent({ dispatch, getters }) {
|
allRefreshFrequent({ dispatch, getters }, slow: boolean) {
|
||||||
console.log('dispatching all frequent refreshes');
|
console.log('dispatching all frequent refreshes');
|
||||||
getters.allAvailableBotsList.forEach((e) => {
|
getters.allAvailableBotsList.forEach((e) => {
|
||||||
if (getters[`${e}/${BotStoreGetters.autoRefresh}`]) {
|
if (getters[`${e}/${BotStoreGetters.autoRefresh}`]) {
|
||||||
console.log('refreshing ', e);
|
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 }) {
|
startRefresh({ state, dispatch, commit }) {
|
||||||
console.log('Starting automatic refresh.');
|
console.log('Starting automatic refresh.');
|
||||||
dispatch('allRefreshFrequent');
|
dispatch('allRefreshFrequent', false);
|
||||||
|
|
||||||
if (!state.refreshInterval) {
|
if (!state.refreshInterval) {
|
||||||
// Set interval for refresh
|
// Set interval for refresh
|
||||||
|
|
Loading…
Reference in New Issue
Block a user