This commit is contained in:
2020-02-25 23:32:05 +00:00
parent 5482ef30cd
commit 9dda20a7c2
7 changed files with 6 additions and 77 deletions

View File

@@ -31,6 +31,7 @@ function dealWithError(msg, vm) {
msg;
// eslint-disable-next-line no-console
console.log(errMsg);
console.trace();
debugger;
window.$gz.eventBus.$emit("notify-error", "Dev error see log / console");
}

View File

@@ -27,6 +27,7 @@ function devShowUnknownError(error) {
console.log("gzapi::devShowUnknownError, error is:");
// eslint-disable-next-line
console.log(error);
console.trace();
debugger;
window.$gz.eventBus.$emit(
@@ -284,19 +285,12 @@ export default {
// GET DATA FROM API SERVER
//
get(route) {
//console.log("gzapi::get(" + route + ")");
var that = this;
return new Promise(function getDataFromServer(resolve, reject) {
fetch(that.APIUrl(route), that.fetchGetOptions())
.then(that.status)
.then(that.json)
.then(response => {
//KEEP this for diagnostics and testing to put a delay on fetches to check if my promise-fu is on point
// setTimeout(() => {
// console.log("gzapi::get->Calling resolve now for " + route);
// resolve(response); // (**)
// }, 2000);
resolve(response);
})
.catch(function handleGetError(error) {

View File

@@ -106,7 +106,7 @@ function getErrorsForField(vm, ref) {
//client field names are generally lower case except for custom fields
//so we need to normalize them all to lower case to match
//they will always differ by more than case so this is fine
// console.log("getErrorsForField finding matches, comparing serverErrorField:["+o.target.toLowerCase() + "] to form field ref:["+ref.toLowerCase()+"]");
return o.target.toLowerCase() == ref.toLowerCase();
});
}
@@ -574,9 +574,6 @@ export default {
// This is required so that server errors can be cleared when input is changed
//
onChange(vm, ref) {
//xeslint-disable-next-line
//WidgetCustom2
//console.log("GZFORM::onChange triggered for field " + ref);
if (triggeringChange || vm.formState.loading) {
return;
}
@@ -659,11 +656,6 @@ export default {
saved: window.$gz.store.state.formSettings[formKey]
};
console.log(
"gzForm::getFormSettings list view id is:" +
window.$gz.store.state.formSettings["test-widgets"].dataTable.listViewId
);
return formSettings;
},
////////////////////////////////////
@@ -672,7 +664,6 @@ export default {
// requires object with one or both keys {temp:{...tempformsettings...},saved:{...persistedformsettings...}}
//
setFormSettings(formKey, formSettings) {
// console.log("gzform::setFormSettings for formkey:" + formKey);
if (window.$gz.errorHandler.devMode()) {
if (!formSettings.saved && !formSettings.temp) {
throw "gzform:setFormSettings - saved AND temp keys are both missing from form data!";
@@ -689,11 +680,6 @@ export default {
if (formSettings.temp) {
sessionStorage.setItem(formKey, JSON.stringify(formSettings.temp));
}
console.trace();
console.log(
"gzForm::setFormSettings at bottom after commit, listviewid in store is:" +
window.$gz.store.state.formSettings["test-widgets"].dataTable.listViewId
);
}, ////////////////////////////////////
// Add no selection item
// Used by forms that need the option of an unselected

View File

@@ -20,7 +20,6 @@ export default function initialize() {
window.$gz.locale
.fetch(window.$gz.locale.coreKeys)
.then(function initializeNavPanel() {
// console.log("INIT NAV PANEL");
var key = 0;
var sub = [];
@@ -732,7 +731,6 @@ export default function initialize() {
}
})
.then(() => {
//console.log("INIT FETCH USEROPTIONS AND CACHE");
//CACHE LOCALE SETTINGS
window.$gz.api
.get("UserOptions/" + window.$gz.store.state.userId)