This commit is contained in:
2018-11-28 18:35:36 +00:00
parent 97fdab7a48
commit 5288c55d80
3 changed files with 48 additions and 16 deletions

View File

@@ -37,7 +37,7 @@
</template>
<script>
/* xeslint-disable */
/* eslint-disable */
import WidgetList from "../components/inventorywidgetlist";
import WarehouseTop from "../components/inventorywarehousetop";
import POTop from "../components/inventorypotop";
@@ -71,9 +71,12 @@ export default {
},
beforeRouteEnter(to, from, next) {
//get lt, roles, populate top level components accordingly
lt.fetch(["Inventory"]).then(() => {
//init widgetlist
WidgetList.init();
var ltKeysRequired = ["Inventory"].concat(WidgetList.ltKeysRequired);
console.log("Inventory.vue, ltKeysRequiredIs:");
console.log(ltKeysRequired);
lt.fetch(ltKeysRequired).then(() => {
// //init widgetlist
// WidgetList.init().then(next());
next();
});
},