Преглед изворни кода

always update state.upgradeCheck after upgrade, even if failure

pull/76/head
Jonathan Cobb пре 4 година
родитељ
комит
6e9b9fd011
1 измењених фајлова са 3 додато и 5 уклоњено
  1. +3
    -5
      src/_store/system.module.js

+ 3
- 5
src/_store/system.module.js Прегледај датотеку

@@ -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) {},


Loading…
Откажи
Сачувај