diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 6728eba0..e1664f81 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -5,9 +5,11 @@ PRIORITY - ALWAYS Lowest level stuff first, i.e. TODO at server, api route chang WIFI change 5g channel to 52,56,60 and 2g channel to 8 recheck before doing as it seems to vary, maybe someone else's is auto switching +todo: initform block generating a new promise unnecessarily? + sb just an async method no? - - +todo: manually go through every form and look for errors in console and make sure it all works properly + *all* forms, leave no stone unturned, sb no surprises beyond this point todo: if dbid in url query parameter of contact form on server it should include that in the message also something needs to be fixed there, it's been in notes forever diff --git a/ayanova/src/views/adm-global-settings.vue b/ayanova/src/views/adm-global-settings.vue index 789e1844..064ce274 100644 --- a/ayanova/src/views/adm-global-settings.vue +++ b/ayanova/src/views/adm-global-settings.vue @@ -31,7 +31,7 @@ export default { async created() { let vm = this; try { - initForm(vm); + await initForm(vm); vm.rights = window.$gz.role.getRights(window.$gz.type.UserOptions); vm.formState.ready = true; diff --git a/ayanova/src/views/adm-license.vue b/ayanova/src/views/adm-license.vue index eddd50bf..17d2e28d 100644 --- a/ayanova/src/views/adm-license.vue +++ b/ayanova/src/views/adm-license.vue @@ -206,7 +206,7 @@ export default { async created() { let vm = this; try { - initForm(vm); + await initForm(vm); vm.rights = window.$gz.role.getRights(window.$gz.type.License); generateMenu(vm); vm.formState.loading = false; @@ -555,7 +555,7 @@ function generateMenu(vm) { ///////////////////////////////// // // -function initForm(vm) { +async function initForm(vm) { return new Promise(async function(resolve, reject) { // (async function() { try { diff --git a/ayanova/src/views/ay-about.vue b/ayanova/src/views/ay-about.vue index 2faa59a5..ea06872a 100644 --- a/ayanova/src/views/ay-about.vue +++ b/ayanova/src/views/ay-about.vue @@ -130,7 +130,7 @@ export default { async created() { let vm = this; try { - initForm(vm); + await initForm(vm); vm.formState.ready = true; window.$gz.eventBus.$on("menu-click", clickHandler); generateMenu(vm); diff --git a/ayanova/src/views/ay-customize.vue b/ayanova/src/views/ay-customize.vue index bd8e32e7..044e62e3 100644 --- a/ayanova/src/views/ay-customize.vue +++ b/ayanova/src/views/ay-customize.vue @@ -80,7 +80,7 @@ export default { async created() { let vm = this; try { - initForm(vm); + await initForm(vm); vm.formState.readOnly = !vm.rights.change; window.$gz.eventBus.$on("menu-click", clickHandler);