This commit is contained in:
2021-04-29 18:41:55 +00:00
parent 89fabfe3fd
commit d18436c91f
16 changed files with 4 additions and 64 deletions

View File

@@ -135,13 +135,6 @@ export default {
//get the logged in user's role
let userRole = window.$gz.store.state.roles;
// console.log("Authorization roles getRights, userRole=", userRole);
// console.log(
// `Authorization roles getRights for ${typeName} objectRoleRights=`,
// objectRoleRights
// );
//calculate the effective rights
//a non zero result of the bitwise calculation means true and zero means false so using !! to force it into a boolean value
//(contrary to some style guides that say !! is obscure but I say it saves a lot of typing)

View File

@@ -17,24 +17,6 @@ function stringifyPrimitive(v) {
}
}
// /////////////////////////////////////////////////
// // Show unexpected errors during development
// //
// function devShowUnknownError(error) {
// if (window.$gz.dev) {
// // eslint-disable-next-line
// console.error("gzapi::devShowUnknownError, error is:", error);
// console.trace();
// debugger;
// window.$gz.eventBus.$emit(
// "notify-warning",
// "DEV ERROR gzapi::devShowUnknownError - unexpected error during api operation see console "
// );
// }
// }
////////////////////////////////////////////
// Try to handle an api error
// return true if handled or false if not

View File

@@ -149,13 +149,11 @@ export default {
let ctrl = getControl(vm, ref);
if (typeof ctrl == "undefined") {
// console.log("gzform:required rule - bailing due to undefined", ref);
return true;
}
let value = getControlValue(ctrl);
if (!isEmpty(value)) {
// console.log("gzform:required rule - PASSED!", ref);
return true;
}

View File

@@ -213,9 +213,6 @@ export default {
data: "ay-about"
});
}
// console.log("appbar", vm.appBar);
// console.log("ctx", ctx);
},
///////////////////////////////
// CHANGE HANDLER

View File

@@ -161,7 +161,6 @@ export default {
textarea.setSelectionRange(0, textarea.value.length);
result = document.execCommand("copy");
} catch (err) {
//console.error(err);
result = null;
} finally {
document.body.removeChild(textarea);

View File

@@ -10,7 +10,6 @@ export default {
// called from App.vue
handleOpenObjectClick(vm, tid) {
//expects extra data (tid) to be one of { type: [AYATYPE], id: [RECORDID] }
//console.log("open-object-handler::handleOpenObjectClick, tid:", tid);
//NOTE: for new objects all edit pages assume record ID 0 means create rather than open
if (tid.type && tid.id != null) {