minor
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user