This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user