all over the place with comments and console statements but now properly chains all the calls for login (except translation may have an issue)
This commit is contained in:
@@ -43,7 +43,7 @@ export default {
|
||||
if (!window.$gz._.has(window.$gz.store.state.enums, k)) {
|
||||
let that = this;
|
||||
|
||||
await that.fetch(k).then(dat => {
|
||||
await that.fetchEnumKey(k).then(dat => {
|
||||
//massage the data as necessary
|
||||
let e = { enumKey: k, items: {} };
|
||||
for (let i = 0; i < dat.length; i++) {
|
||||
@@ -56,7 +56,7 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
fetch(enumKey) {
|
||||
fetchEnumKey(enumKey) {
|
||||
return window.$gz.api.get("enum-list/list/" + enumKey).then(res => {
|
||||
if (res.error) {
|
||||
throw res.error;
|
||||
|
||||
Reference in New Issue
Block a user