diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index c129b6d1..5eeafa2e 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -54,7 +54,7 @@ todo: excerpt, add as part of item object and conditionally show todo: search controller at server needs an excerpt route so client can request an excerpt for a record todo: session cache search results and scroll position if possible to support "back and forthing" todo: search what order should the results be retruned in, right now is by id but looks weird in list - +todo: look at using finally block in all fetch form calls to do the things that are repeated in catch and then above it see search form for example todo: HUGE layout - go through all forms set browser to 4k ultra hd and see where things line up diff --git a/ayanova/src/views/home-search.vue b/ayanova/src/views/home-search.vue index 92d4679a..e2a5b1e5 100644 --- a/ayanova/src/views/home-search.vue +++ b/ayanova/src/views/home-search.vue @@ -169,7 +169,10 @@ export default { }); }, getExcerpt(item) { - item.info = "***NEW INFO HERE****"; + if (item.info) { + return; + } + // item.info = "***NEW INFO HERE****"; }, getDataFromApi() { let vm = this; @@ -204,8 +207,6 @@ export default { } else { vm.maxResultsReturned = res.data.searchResults.length == MAX_RESULTS; - - // vm.items = []; let newResults = []; let nDex = 0; let lastType = -1; @@ -232,24 +233,24 @@ export default { newResults.push(item); } - vm.items = newResults; + // //Update the form status + // window.$gz.form.setFormState({ + // vm: vm, - //Update the form status - window.$gz.form.setFormState({ - vm: vm, - - loading: false - }); + // loading: false + // }); } }) .catch(function handleGetDataFromAPIError(error) { + window.$gz.errorHandler.handleFormError(error, vm); + }) + .finally(function() { //Update the form status window.$gz.form.setFormState({ vm: vm, loading: false }); - window.$gz.errorHandler.handleFormError(error, vm); }); } }