This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user