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
|
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
|
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
|
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
|
also something needs to be fixed there, it's been in notes forever
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export default {
|
|||||||
async created() {
|
async created() {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
try {
|
try {
|
||||||
initForm(vm);
|
await initForm(vm);
|
||||||
|
|
||||||
vm.rights = window.$gz.role.getRights(window.$gz.type.UserOptions);
|
vm.rights = window.$gz.role.getRights(window.$gz.type.UserOptions);
|
||||||
vm.formState.ready = true;
|
vm.formState.ready = true;
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ export default {
|
|||||||
async created() {
|
async created() {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
try {
|
try {
|
||||||
initForm(vm);
|
await initForm(vm);
|
||||||
vm.rights = window.$gz.role.getRights(window.$gz.type.License);
|
vm.rights = window.$gz.role.getRights(window.$gz.type.License);
|
||||||
generateMenu(vm);
|
generateMenu(vm);
|
||||||
vm.formState.loading = false;
|
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) {
|
return new Promise(async function(resolve, reject) {
|
||||||
// (async function() {
|
// (async function() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ export default {
|
|||||||
async created() {
|
async created() {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
try {
|
try {
|
||||||
initForm(vm);
|
await initForm(vm);
|
||||||
vm.formState.ready = true;
|
vm.formState.ready = true;
|
||||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||||
generateMenu(vm);
|
generateMenu(vm);
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export default {
|
|||||||
async created() {
|
async created() {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
try {
|
try {
|
||||||
initForm(vm);
|
await initForm(vm);
|
||||||
|
|
||||||
vm.formState.readOnly = !vm.rights.change;
|
vm.formState.readOnly = !vm.rights.change;
|
||||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||||
|
|||||||
Reference in New Issue
Block a user