diff --git a/ayanova/src/api/locale.js b/ayanova/src/api/locale.js index 99712c2e..170b96ec 100644 --- a/ayanova/src/api/locale.js +++ b/ayanova/src/api/locale.js @@ -11,7 +11,9 @@ 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 @@ -23,6 +25,7 @@ export default { } if (needIt.length == 0) { resolve(); + this.isFetching = false; return; } //step 2: get it @@ -34,9 +37,11 @@ export default { store.commit("addLocaleText", item); }); resolve(); + this.isFetching = false; }) .catch(function(error) { reject(error); + this.isFetching = false; }); }); }, diff --git a/ayanova/src/views/inventory.vue b/ayanova/src/views/inventory.vue index 36dc5fd9..2c277e16 100644 --- a/ayanova/src/views/inventory.vue +++ b/ayanova/src/views/inventory.vue @@ -27,13 +27,6 @@ - - - diff --git a/ayanova/src/views/log.vue b/ayanova/src/views/log.vue index 8c655fd7..9da86e5f 100644 --- a/ayanova/src/views/log.vue +++ b/ayanova/src/views/log.vue @@ -1,42 +1,42 @@ - -