This commit is contained in:
2019-07-19 00:10:06 +00:00
parent 2137d57e76
commit 300105ad41
4 changed files with 92 additions and 37 deletions

View File

@@ -39,6 +39,11 @@ import customFieldsControl from "./components/custom-fields-control.vue";
// 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
//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.$gzlocale = locale;
window.$gzformcustomtemplate = gzformcustomtemplate;
Object.defineProperty(Vue.prototype, "$gztype", { value: gztype });
Object.defineProperty(Vue.prototype, "$gzrole", { value: roles });
Object.defineProperty(Vue.prototype, "$gzevent", { value: gzeventbus });