This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<v-toolbar flat>
|
<v-toolbar flat>
|
||||||
<v-toolbar-title>
|
<v-toolbar-title>
|
||||||
<v-icon large color="primary">fa-splotch</v-icon>
|
<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-toolbar-title>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<v-btn icon @click="newItem()">
|
<v-btn icon @click="newItem()">
|
||||||
@@ -51,6 +51,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
/* xeslint-disable */
|
/* xeslint-disable */
|
||||||
|
import localeText from "../api/locale";
|
||||||
import pagedList from "../api/pagedlist";
|
import pagedList from "../api/pagedlist";
|
||||||
import WidgetEdit from "../components/inventorywidgetedit";
|
import WidgetEdit from "../components/inventorywidgetedit";
|
||||||
export default {
|
export default {
|
||||||
@@ -104,6 +105,14 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
methods: {
|
methods: {
|
||||||
|
init(parentLocaleText) {
|
||||||
|
parentLocaleText.fetch(["Widget", "WidgetList"]).then(() => {
|
||||||
|
alert("inventorywidgetlist::FULLY INITIALIZED");
|
||||||
|
});
|
||||||
|
},
|
||||||
|
lt: function(key) {
|
||||||
|
return localeText.get(key);
|
||||||
|
},
|
||||||
newItem() {
|
newItem() {
|
||||||
this.dialogdata.recordId = -1;
|
this.dialogdata.recordId = -1;
|
||||||
this.dialogdata.showeditdialog = true;
|
this.dialogdata.showeditdialog = true;
|
||||||
|
|||||||
@@ -72,6 +72,8 @@ export default {
|
|||||||
beforeRouteEnter(to, from, next) {
|
beforeRouteEnter(to, from, next) {
|
||||||
//get lt, roles, populate top level components accordingly
|
//get lt, roles, populate top level components accordingly
|
||||||
lt.fetch(["Inventory"]).then(() => {
|
lt.fetch(["Inventory"]).then(() => {
|
||||||
|
//attempt to init widgetlist before it's mounted!?
|
||||||
|
WidgetList.methods.init(lt);
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user