This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<v-layout column wrap class="my-5" align-center>
|
||||
<v-layout column wrap class="my-5" align-center v-if="this.formReady">
|
||||
<v-flex xs12>
|
||||
<v-container grid-list-xl>
|
||||
<v-layout row wrap align-top>
|
||||
@@ -39,7 +39,12 @@ import PartAssemblyTop from "../components/inventorypartassemblytop";
|
||||
|
||||
export default {
|
||||
beforeCreate() {
|
||||
this.$gzlocale.fetch(["Inventory"]);
|
||||
this.$gzlocale
|
||||
.fetch(["Inventory"])
|
||||
.then(() => (this.formReady = true))
|
||||
.catch(err => {
|
||||
throw err;
|
||||
});
|
||||
},
|
||||
components: {
|
||||
WidgetList,
|
||||
@@ -49,7 +54,9 @@ export default {
|
||||
PartAssemblyTop
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
return {
|
||||
formReady: false
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -21,6 +21,7 @@ export default {
|
||||
.fetch(["Log"])
|
||||
.then(() => (this.formReady = true))
|
||||
.catch(err => {
|
||||
this.formReady = true;
|
||||
throw err;
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user