diff --git a/app/ayanova/src/components/inventorywidgetlist.vue b/app/ayanova/src/components/inventorywidgetlist.vue index 8e9ecb4d..aea5e2ac 100644 --- a/app/ayanova/src/components/inventorywidgetlist.vue +++ b/app/ayanova/src/components/inventorywidgetlist.vue @@ -55,6 +55,11 @@ import localeText from "../api/locale"; import pagedList from "../api/pagedlist"; import WidgetEdit from "../components/inventorywidgetedit"; export default { + init() { + localeText.fetch(["Widget", "WidgetList"]).then(() => { + // alert("inventorywidgetlist::FULLY INITIALIZED"); + }); + }, components: { WidgetEdit }, @@ -104,12 +109,12 @@ export default { this.getDataFromApi(); }, computed: {}, - methods: {//todo: clean up this shit with locale text, or maybe it's ok, not sure - init(parentLocaleText) { - parentLocaleText.fetch(["Widget", "WidgetList"]).then(() => { - alert("inventorywidgetlist::FULLY INITIALIZED"); - }); - }, + methods: { + // init() { + // localeText.fetch(["Widget", "WidgetList"]).then(() => { + // alert("inventorywidgetlist::FULLY INITIALIZED"); + // }); + // }, lt: function(key) { return localeText.get(key); }, diff --git a/app/ayanova/src/views/inventory.vue b/app/ayanova/src/views/inventory.vue index 0e92d0af..ff3db650 100644 --- a/app/ayanova/src/views/inventory.vue +++ b/app/ayanova/src/views/inventory.vue @@ -72,8 +72,8 @@ export default { beforeRouteEnter(to, from, next) { //get lt, roles, populate top level components accordingly lt.fetch(["Inventory"]).then(() => { - //attempt to init widgetlist before it's mounted!? - WidgetList.methods.init(lt); + //init widgetlist + WidgetList.init(); next(); }); }, diff --git a/devdocs/todo.txt b/devdocs/todo.txt index b74a0b4e..92d0ae71 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -23,7 +23,8 @@ INITIAL TESTING NOTES: - Check the rights to the list before it gets the data - Edit / Trash buttons in grid are too small on a phone with fat fingers - + - Should list or any widgets fetch data automatically on display or should they have some way of requesting it to save bandwidth? (TTM CADILLAC PROBLEM?) + - Should the list be narrow to start and expand on demand? - Login needs to scroll higher or logo smaller on sm so that the keyboard doesn't obscure the login lines - Need a test user that has access to every possible role so that I can see all the roles for testing purposes - About page has too big of margins on each side of display @@ -31,7 +32,7 @@ INITIAL TESTING NOTES: - TODO: Will need currency symbol, date format, numeric format from user settings at server - rather than try to use local browser settings which is fraught with peril will need to be specified at server itself - Wherever I am currently storing time zone that's where these other settings need to be - + - Make the copyright banner at bottom left aligned, right now it seems weird in small iPhone size when it breaks to two lines (make text smaller?) - Change server api page favicon to look like a SERVER version of the AyaNova logo, not the same one as the client uses [ fuck it, why? TTM!]