Add a pref for whether to display mention as icon or text

This commit is contained in:
Tusooa Zhu 2022-01-10 00:37:39 -05:00
parent 28ee5721bb
commit 76547fe66d
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
5 changed files with 15 additions and 4 deletions

View file

@ -85,6 +85,9 @@ const MentionLink = {
this.highlightType
]
},
useAtIcon () {
return this.mergedConfig.useAtIcon
},
...mapGetters(['mergedConfig']),
...mapState({
currentUser: state => state.users.currentUser

View file

@ -24,13 +24,14 @@
>
<!-- eslint-disable vue/no-v-html -->
<FAIcon
v-if="useAtIcon"
size="sm"
icon="at"
class="at"
/><span class="shortName"><span
class="userName"
v-html="userName"
/></span>
/><span class="shortName">{{ !useAtIcon ? '@' : '' }}<span
class="userName"
v-html="userName"
/></span>
<span
v-if="isYou"
class="you"