This commit is contained in:
2020-06-20 00:29:47 +00:00
parent 85006be6c1
commit 7a99adfb4c
5 changed files with 9 additions and 7 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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);

View File

@@ -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);