mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-12 19:23:51 +00:00
Don't Ping if we're not logged in
This commit is contained in:
parent
dc2f7034e4
commit
a6d4de0c66
|
@ -83,7 +83,8 @@ export default {
|
|||
},
|
||||
},
|
||||
actions: {
|
||||
ping({ commit }) {
|
||||
ping({ commit, rootState }) {
|
||||
if (rootState.loggedIn) {
|
||||
api
|
||||
.get('/ping')
|
||||
.then((result) => {
|
||||
|
@ -91,6 +92,7 @@ export default {
|
|||
commit('setIsBotOnline', result.data, { root: true });
|
||||
})
|
||||
.catch(console.error);
|
||||
}
|
||||
},
|
||||
setDetailTrade({ commit }, trade: Trade) {
|
||||
commit('setDetailTrade', trade);
|
||||
|
|
Loading…
Reference in New Issue
Block a user