summaryrefslogtreecommitdiffstats
path: root/webapp/src/main.js
diff options
context:
space:
mode:
authorUdo Walter2018-07-20 07:48:06 +0200
committerUdo Walter2018-07-20 07:48:06 +0200
commitb48f74afc95a45f720e9e2c41ef71b3c3b117451 (patch)
tree6f8ec8aa23739d283f9e9596e1edf174519f5c82 /webapp/src/main.js
parent[webapp/settings] simplified settings storage (diff)
downloadbas-b48f74afc95a45f720e9e2c41ef71b3c3b117451.tar.gz
bas-b48f74afc95a45f720e9e2c41ef71b3c3b117451.tar.xz
bas-b48f74afc95a45f720e9e2c41ef71b3c3b117451.zip
[webapp] put settings state into settings object
Diffstat (limited to 'webapp/src/main.js')
-rw-r--r--webapp/src/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/src/main.js b/webapp/src/main.js
index 5d4f494..3c4ce47 100644
--- a/webapp/src/main.js
+++ b/webapp/src/main.js
@@ -21,7 +21,7 @@ Vue.use(VueTouch)
Vue.use(VueI18n)
const i18n = new VueI18n({
- locale: store.state.locale,
+ locale: store.state.settings.locale,
silentTranslationWarn: true,
messages: {
'en': {
@@ -49,7 +49,7 @@ new Vue({
store,
router,
i18n,
- computed: { locale: () => store.state.locale },
+ computed: { locale: () => store.state.settings.locale },
watch: { locale: v => { i18n.locale = v } },
template: '<router-view/>'
}).$mount('#app')