From 5288c55d80ceeb3e14ee9547d672355617ef13c2 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 28 Nov 2018 18:35:36 +0000 Subject: [PATCH] --- app/ayanova/src/api/locale.js | 1 + .../src/components/inventorywidgetlist.vue | 52 ++++++++++++++----- app/ayanova/src/views/inventory.vue | 11 ++-- 3 files changed, 48 insertions(+), 16 deletions(-) diff --git a/app/ayanova/src/api/locale.js b/app/ayanova/src/api/locale.js index 540924a7..7e0e3669 100644 --- a/app/ayanova/src/api/locale.js +++ b/app/ayanova/src/api/locale.js @@ -14,6 +14,7 @@ export default { fetch(keys) { 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 var needIt = []; for (var i = 0; i < keys.length; i++) { if (!_.has(store.state.localeText, keys[i])) { diff --git a/app/ayanova/src/components/inventorywidgetlist.vue b/app/ayanova/src/components/inventorywidgetlist.vue index aea5e2ac..16b361c1 100644 --- a/app/ayanova/src/components/inventorywidgetlist.vue +++ b/app/ayanova/src/components/inventorywidgetlist.vue @@ -50,16 +50,44 @@