summaryrefslogtreecommitdiffstats
path: root/webapp/src/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/main.js')
-rw-r--r--webapp/src/main.js23
1 files changed, 21 insertions, 2 deletions
diff --git a/webapp/src/main.js b/webapp/src/main.js
index 70afb40..bd7d9ec 100644
--- a/webapp/src/main.js
+++ b/webapp/src/main.js
@@ -135,7 +135,26 @@ new Vue({
store,
router,
i18n,
- computed: { locale: () => store.state.settings.locale },
- watch: { locale: v => { i18n.locale = v } },
+ computed: {
+ locale: () => store.state.settings.locale,
+ noAnimations: () => store.state.settings.noAnimations
+ },
+ watch: {
+ locale: v => { i18n.locale = v },
+ noAnimations: {
+ immediate: true,
+ handler (value) {
+ if (value) {
+ Vue.component('transition', {
+ render () {
+ return this.$slots.default
+ }
+ })
+ } else {
+ delete Vue.options.components['transition']
+ }
+ }
+ }
+ },
template: '<router-view/>'
}).$mount('#app')