Browse Source

Rename restoreInProgress flag

pull/12/head
Kristijan Mitrovic 4 years ago
parent
commit
9dc9622909
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/_store/account.module.js
  2. +1
    -1
      src/_store/system.module.js
  3. +1
    -1
      src/auth/RestorePage.vue

+ 2
- 2
src/_store/account.module.js View File

@@ -302,7 +302,7 @@ const mutations = {

restoreRequest(state, systemConfigs) {
state.status = Object.assign({}, state.status, {restoring: true});
systemConfigs.restoringInProgress = true;
systemConfigs.restoreInProgress = true;
},
restoreSuccess(state, systemConfigs) {
state.status = Object.assign({}, state.status, {restoring: false});
@@ -310,7 +310,7 @@ const mutations = {
},
restoreFailure(state, systemConfigs, error) {
state.status = Object.assign({}, state.status, {restoring: false});
systemConfigs.restoringInProgress = false;
systemConfigs.restoreInProgress = false;
console.log('restore failed: ' + JSON.stringify(error));
},



+ 1
- 1
src/_store/system.module.js View File

@@ -22,7 +22,7 @@ const state = {
promoCodePolicy: null,
requireSendMetrics: null,
awaitingRestore: false,
restoringInProgress: false,
restoreInProgress: false,
support: {},
securityLevels: null,
jarVersion: null,


+ 1
- 1
src/auth/RestorePage.vue View File

@@ -5,7 +5,7 @@

<div v-if="!configs"><img :src="loadingImgSrc" /></div>

<div v-else-if="configs.restoringInProgress" class="alert alert-info">
<div v-else-if="configs.restoreInProgress" class="alert alert-info">
{{ messages.message_restore_not_applicable }}<hr/>
<a href="/">{{ messages.message_back_to_root }}</a>
</div>


Loading…
Cancel
Save