This commit is contained in:
2019-03-07 00:58:08 +00:00
parent c6dc2e949d
commit c3020ac34a
4 changed files with 13 additions and 18 deletions

View File

@@ -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>

View File

@@ -21,6 +21,7 @@ export default {
.fetch(["Log"])
.then(() => (this.formReady = true))
.catch(err => {
this.formReady = true;
throw err;
});
},