This commit is contained in:
2018-11-15 21:49:33 +00:00
parent 0949667d87
commit 8ef2673a9b
5 changed files with 17 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ import _ from "../utils/libs/core.min.js";
export default {
get(key) {
// debugger;
if (!_.has(store.state.localeText, key)) {
return "?" + key + "?";
}

View File

@@ -6,7 +6,7 @@
<v-flex xs12 sm6 offset-sm3>
<v-card>
<v-toolbar>
<v-toolbar-title>About AyaNova</v-toolbar-title>
<v-toolbar-title>{{ lt("HelpAboutAyaNova")}}</v-toolbar-title>
<v-spacer></v-spacer>
<v-avatar size="64px" tile>
<img :src="require('../assets/bw-logo.svg')" alt="AyaNova">
@@ -103,6 +103,7 @@
/* xeslint-disable */
import apiMeta from "../api/apimeta";
import aboutInfo from "../utils/aboutinfo";
import lt from "../api/locale";
export default {
data() {
return {
@@ -110,6 +111,9 @@ export default {
clientInfo: {}
};
},
beforeMount() {
lt.fetch(["HelpAboutAyaNova"]);
},
mounted() {
this.clientInfo.version = aboutInfo.version;
apiMeta
@@ -124,6 +128,11 @@ export default {
//probablyo an error component with error message slot to fill in
alert(error);
});
},
methods: {
lt: function(key) {
return lt.get(key);
}
}
};
</script>