options to disable (You)s and highlighting of yourself

This commit is contained in:
Henry Jameson 2022-02-03 22:34:57 +02:00
parent 6d3229b1a1
commit bfb3a4364b
6 changed files with 25 additions and 3 deletions

View file

@ -87,7 +87,7 @@ const MentionLink = {
classnames () {
return [
{
'-you': this.isYou,
'-you': this.isYou && this.shouldBoldenYou,
'-highlighted': this.highlight
},
this.highlightType
@ -115,6 +115,12 @@ const MentionLink = {
shouldShowAvatar () {
return this.mergedConfig.mentionLinkShowAvatar
},
shouldShowYous () {
return this.mergedConfig.mentionLinkShowYous
},
shouldBoldenYou () {
return this.mergedConfig.mentionLinkBoldenYou
},
shouldFadeDomain () {
return this.mergedConfig.mentionLinkFadeDomain
},

View file

@ -45,8 +45,8 @@
v-html="'@' + serverName"
/></span>
<span
v-if="isYou"
class="you"
v-if="isYou && shouldShowYous"
:class="{ '-you': shouldBoldenYou }"
>{{ $t('status.you') }}</span>
<!-- eslint-enable vue/no-v-html -->
</a>