This commit is contained in:
2019-07-24 15:22:19 +00:00
parent a14e64644d
commit 864c0ebab8
4 changed files with 30 additions and 19 deletions

View File

@@ -38,11 +38,13 @@ import errorhandler from "./api/errorhandler";
/////////////////////////////////////////////////////////////////
// LIBS AND GLOBAL ITEMS
// (https://medium.com/js-dojo/use-any-javascript-library-with-vue-js-3f7e2a4974a8)
// NOTE: I'm putting them on Window deliberately to be globally available
// some say this is bad only due to if you want to server render the page
// however when I researched that I found it's easily worked around
// as all you need is a "window" global var defined and then it's all good in the hood
// so for convenience and far less fuckery this is the way
//
//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 = {
locale: locale,
formCustomTemplate: gzformcustomtemplate,