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