diff options
| author | Henry Jameson <me@hjkos.com> | 2022-02-03 22:34:57 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-02-03 22:34:57 +0200 |
| commit | bfb3a4364be3f71f7c46056aeb8972f04a072703 (patch) | |
| tree | 69244eecbcc79694b4fd6d54433ddf68e8119d09 /src/components/mention_link | |
| parent | 6d3229b1a10a6547d5c0ebcf47a65f03a0f9c690 (diff) | |
options to disable (You)s and highlighting of yourself
Diffstat (limited to 'src/components/mention_link')
| -rw-r--r-- | src/components/mention_link/mention_link.js | 8 | ||||
| -rw-r--r-- | src/components/mention_link/mention_link.vue | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/components/mention_link/mention_link.js b/src/components/mention_link/mention_link.js index 5209907d..55eea195 100644 --- a/src/components/mention_link/mention_link.js +++ b/src/components/mention_link/mention_link.js @@ -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 }, diff --git a/src/components/mention_link/mention_link.vue b/src/components/mention_link/mention_link.vue index ac20eb5a..d8ab79fb 100644 --- a/src/components/mention_link/mention_link.vue +++ b/src/components/mention_link/mention_link.vue @@ -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> |
