This commit is contained in:
2018-11-16 22:21:55 +00:00
parent 2974353b95
commit fbad297525
3 changed files with 10 additions and 7 deletions

View File

@@ -14,7 +14,7 @@
<v-btn large icon to="/log"> <v-btn large icon to="/log">
<v-icon>fa-glasses</v-icon> <v-icon>fa-glasses</v-icon>
</v-btn> </v-btn>
</v-toolbar> </v-toolbar>
<v-list two-line subheader> <v-list two-line subheader>
<v-subheader>{{ lt("ClientApp")}}</v-subheader> <v-subheader>{{ lt("ClientApp")}}</v-subheader>
<v-list-tile avatar> <v-list-tile avatar>
@@ -113,7 +113,7 @@ export default {
clientInfo: {} clientInfo: {}
}; };
}, },
beforeMount() { beforeRouteEnter(to, from, next) {
lt.fetch([ lt.fetch([
"HelpAboutAyaNova", "HelpAboutAyaNova",
"ClientApp", "ClientApp",
@@ -129,7 +129,9 @@ export default {
"LicenseExpiration", "LicenseExpiration",
"SupportedUntil", "SupportedUntil",
"LicensedOptions" "LicensedOptions"
]); ]).then(() => {
next();
});
}, },
mounted() { mounted() {
this.clientInfo.version = aboutInfo.version; this.clientInfo.version = aboutInfo.version;

View File

@@ -15,8 +15,10 @@ export default {
data() { data() {
return {}; return {};
}, },
async Created() { beforeRouteEnter(to, from, next) {
await lt.fetch(["Log"]); lt.fetch(["Log"]).then(() => {
next();
});
}, },
mounted() {}, mounted() {},
methods: { methods: {

View File

@@ -7,8 +7,7 @@ Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOiIxNTQxNTE5NTA5IiwiZXhwIjoi
- Clean up error log view so it displays correctly with copyable text box and scrollbars of some kind - Clean up error log view so it displays correctly with copyable text box and scrollbars of some kind
- Centralize the lt function, find out how to move it into the top so can just call it from anywhere
- pre-fetch: noticed it's not pausing long enough to get teh fetched text at times (log view) - pre-fetch: noticed it's not pausing long enough to get teh fetched text at times (log view)
- !!This will be important to every form loading data so need to get it right here!! - !!This will be important to every form loading data so need to get it right here!!
- This seems to be best done in the router if I want to prefetch before the component lifecycle starts - This seems to be best done in the router if I want to prefetch before the component lifecycle starts