This commit is contained in:
les
2020-11-17 00:32:36 +01:00
parent 7fc7f55784
commit e8eb9c1882

View File

@@ -1,9 +1,8 @@
<template lang="pug">
v-container
v-card
v-card-title About
v-card-text(v-if='$auth.user && $auth.user.is_admin')
Editor(v-model='about')
Editor(v-model='about' label="About")
v-card-text(v-else v-html='about')
v-card-actions(v-if='$auth.user && $auth.user.is_admin')
v-spacer
@@ -21,6 +20,11 @@ export default {
about: $store.state.settings.about || this.$t('about')
}
},
head () {
return {
title: `${this.settings.title} - ${this.$t('common.info')}`
}
},
computed: mapState(['settings']),
methods: {
...mapActions(['setSetting']),
@@ -28,11 +32,6 @@ export default {
this.$root.$message('common.ok', { color: 'success' })
this.setSetting({ key: 'about', value: this.about })
}
},
head () {
return {
title: `${this.settings.title} - ${this.$t('common.info')}`
}
}
}
</script>