diff --git a/ayanova/src/api/locale.js b/ayanova/src/api/locale.js index 170b96ec..1a3581b6 100644 --- a/ayanova/src/api/locale.js +++ b/ayanova/src/api/locale.js @@ -11,9 +11,7 @@ export default { } return store.state.localeText[key]; }, - isFetching: false, fetch(keys) { - this.isFetching = true; return new Promise(function(resolve, reject) { //step 1: build an array of keys that we don't have already //Note: this will ensure only unique keys go into the store so it's safe to call this with dupes as can happen @@ -25,7 +23,7 @@ export default { } if (needIt.length == 0) { resolve(); - this.isFetching = false; + return; } //step 2: get it @@ -37,11 +35,9 @@ export default { store.commit("addLocaleText", item); }); resolve(); - this.isFetching = false; }) .catch(function(error) { reject(error); - this.isFetching = false; }); }); }, diff --git a/ayanova/src/views/log.vue b/ayanova/src/views/log.vue index 9da86e5f..60d7dfc6 100644 --- a/ayanova/src/views/log.vue +++ b/ayanova/src/views/log.vue @@ -1,6 +1,6 @@