This commit is contained in:
@@ -124,13 +124,10 @@ export default {
|
||||
window.$gz.api.get(listUrl).then(res => {
|
||||
that.loading = false;
|
||||
that.totalItems = res.paging.count;
|
||||
console.log("About to call fetchlocalizedheadernames");
|
||||
//This is how to call an async function and await it from sync code
|
||||
(async function() {
|
||||
//Make sure the locale keys are fetched
|
||||
await fetchLocalizedHeaderNames(res.columns);
|
||||
console.log(
|
||||
"Back from fetch localized header names, now can bjuild headers"
|
||||
);
|
||||
//build that.headers here
|
||||
that.headers = buildHeaders(res.columns);
|
||||
//Post process data here and then set that.records
|
||||
|
||||
Reference in New Issue
Block a user