This commit is contained in:
2018-11-28 01:10:31 +00:00
parent 4d972605ae
commit 35abbf6d8c
2 changed files with 12 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
<v-toolbar flat>
<v-toolbar-title>
<v-icon large color="primary">fa-splotch</v-icon>
<span class="hidden-sm-and-down">Widgets</span>
<span class="hidden-sm-and-down">{{ lt("WidgetList")}}</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-btn icon @click="newItem()">
@@ -51,6 +51,7 @@
<script>
/* xeslint-disable */
import localeText from "../api/locale";
import pagedList from "../api/pagedlist";
import WidgetEdit from "../components/inventorywidgetedit";
export default {
@@ -104,6 +105,14 @@ export default {
},
computed: {},
methods: {
init(parentLocaleText) {
parentLocaleText.fetch(["Widget", "WidgetList"]).then(() => {
alert("inventorywidgetlist::FULLY INITIALIZED");
});
},
lt: function(key) {
return localeText.get(key);
},
newItem() {
this.dialogdata.recordId = -1;
this.dialogdata.showeditdialog = true;

View File

@@ -72,6 +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);
next();
});
},