Browse Source

Use proper name for waiting restoring flag

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

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

@@ -116,7 +116,7 @@ const actions = {
.then( .then(
ok => { ok => {
commit('restoreSuccess'); commit('restoreSuccess');
systemConfigs.isInRestoringStatus = false;
systemConfigs.isWaitingRestoring = false;
}, },
error => commit('restoreFailure', error) error => commit('restoreFailure', error)
); );


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

@@ -21,7 +21,7 @@ const state = {
launchLock: null, launchLock: null,
promoCodePolicy: null, promoCodePolicy: null,
requireSendMetrics: null, requireSendMetrics: null,
isInRestoringStatus: false,
isWaitingRestoring: false,
support: {}, support: {},
securityLevels: null securityLevels: null
}, },


+ 1
- 1
src/app/App.vue View File

@@ -61,7 +61,7 @@ export default {
}), }),
locales () { return this.configs.locales; }, locales () { return this.configs.locales; },
path () { return this.$route.path; }, path () { return this.$route.path; },
isInRestoringMode () { return this.configs ? this.configs.isInRestoringStatus : undefined; }
isInRestoringMode () { return this.configs ? this.configs.isWaitingRestoring : undefined; }
}, },
methods: { methods: {
...mapActions({ clearAlert: 'alert/clear' }), ...mapActions({ clearAlert: 'alert/clear' }),


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

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


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


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


Loading…
Cancel
Save