Parcourir la source

always update state.upgradeCheck after upgrade, even if failure

pull/76/head
Jonathan Cobb il y a 4 ans
Parent
révision
6e9b9fd011
1 fichiers modifiés avec 3 ajouts et 5 suppressions
  1. +3
    -5
      src/_store/system.module.js

+ 3
- 5
src/_store/system.module.js Voir le fichier

@@ -210,11 +210,8 @@ const actions = {
(error) => commit('checkForUpgradeFailure', error)
);
} else {
console.log(
'checkForUpgrade: already checked (' +
state.upgradeCheck +
'), not checking again'
);
commit('checkForUpgradeFailure', null)
console.log('checkForUpgrade: already checked (' + state.upgradeCheck + '), not checking again');
}
},
upgrade({ commit }) {
@@ -535,6 +532,7 @@ const mutations = {
},
checkForUpgradeFailure(state, error) {
state.error = error;
state.upgradeCheck = null;
},

upgradeRequest(state) {},


Chargement…
Annuler
Enregistrer