This commit is contained in:
2019-07-19 19:59:01 +00:00
parent 43b955501a
commit 9389035bb9

View File

@@ -40,7 +40,7 @@ import errorhandler from "./api/errorhandler";
// LIBS AND GLOBAL ITEMS
// (https://medium.com/js-dojo/use-any-javascript-library-with-vue-js-3f7e2a4974a8)
//
//todo: move all this shit to Window.$gz as subkeys on it and then modify all the caller code that used to use vm vue property version
todo: Now that all is in Window.$gz Look for unnecessary local imports of global libs (search for import and see what comes up)
//then modify the inventory-widget-edit form initialization shit so that the stuff needed after form loads still happens but the before is moved to route before enter and that it's all called
//with two separate methods: One standard one for init form before it is loaded and one for init form stuff for after it's loaded. BeforeLoadInit, AfterLoadInit or something
window.$gz = {
@@ -60,28 +60,6 @@ window.$gz = {
errorHandler: errorhandler
};
//Object.defineProperty(Vue.prototype, "$gztype", { value: gztype });
//Object.defineProperty(Vue.prototype, "$gzrole", { value: roles });
//Object.defineProperty(Vue.prototype, "$gzevent", { value: gzeventbus });
//Object.defineProperty(Vue.prototype, "$gzmenu", { value: gzmenu });
//Object.defineProperty(Vue.prototype, "$gzdialog", { value: gzdialog });
//Object.defineProperty(Vue.prototype, "$gzutil", { value: gzutil });
//Object.defineProperty(Vue.prototype, "$dayjs", { value: dayjs });
//Object.defineProperty(Vue.prototype, "$_", { value: lodash });
//Object.defineProperty(Vue.prototype, "$gzlocale", { value: locale });
//Object.defineProperty(Vue.prototype, "$gzapi", { value: gzapi });
//Object.defineProperty(Vue.prototype, "$gzform", { value: gzform });
// Object.defineProperty(Vue.prototype, "$gzformcustomtemplate", {
// value: gzformcustomtemplate
// });
// Object.defineProperty(Vue.prototype, "$gzreport", { value: gzreport });
// Object.defineProperty(Vue.prototype, "$gzHandleFormError", {
// value: errorHandler.handleFormError
// });
// Object.defineProperty(Vue.prototype, "$gzdevmode", {
// value: errorHandler.devMode
// });
/////////////////////////////////////////////////////////////////
// ERROR HANDLING
//