This commit is contained in:
2020-04-07 20:15:27 +00:00
parent 8355937544
commit bf62778a4b
2 changed files with 9 additions and 1 deletions

View File

@@ -54,6 +54,8 @@ CURRENT TODOs
todo: SEARCH UI
todo: widgets list form needs search link
todo: if (res.error != undefined) could be changed to if(res.error) everywhere
todo: what is vm.loading used for?

View File

@@ -88,7 +88,9 @@ export default {
vm.formState.ready = true;
window.$gz.eventBus.$on("menu-click", clickHandler);
generateMenu(vm);
// vm.getDataFromApi();
if (vm.$route.params.ayatype) {
vm.searchObjectType = vm.$route.params.ayatype;
}
})
.catch(err => {
vm.formState.ready = true;
@@ -126,6 +128,10 @@ export default {
methods: {
getDataFromApi() {
let vm = this;
if (!vm.searchPhrase) {
return;
}
vm.formState.loading = true;
window.$gz.form.deleteAllErrorBoxErrors(vm);
/**