This commit is contained in:
2018-11-28 17:53:19 +00:00
parent 72edf203e9
commit 47f1f04f86
3 changed files with 16 additions and 10 deletions

View File

@@ -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);
},