options to disable (You)s and highlighting of yourself
This commit is contained in:
parent
6d3229b1a1
commit
bfb3a4364b
6 changed files with 25 additions and 3 deletions
|
@ -87,7 +87,7 @@ const MentionLink = {
|
||||||
classnames () {
|
classnames () {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
'-you': this.isYou,
|
'-you': this.isYou && this.shouldBoldenYou,
|
||||||
'-highlighted': this.highlight
|
'-highlighted': this.highlight
|
||||||
},
|
},
|
||||||
this.highlightType
|
this.highlightType
|
||||||
|
@ -115,6 +115,12 @@ const MentionLink = {
|
||||||
shouldShowAvatar () {
|
shouldShowAvatar () {
|
||||||
return this.mergedConfig.mentionLinkShowAvatar
|
return this.mergedConfig.mentionLinkShowAvatar
|
||||||
},
|
},
|
||||||
|
shouldShowYous () {
|
||||||
|
return this.mergedConfig.mentionLinkShowYous
|
||||||
|
},
|
||||||
|
shouldBoldenYou () {
|
||||||
|
return this.mergedConfig.mentionLinkBoldenYou
|
||||||
|
},
|
||||||
shouldFadeDomain () {
|
shouldFadeDomain () {
|
||||||
return this.mergedConfig.mentionLinkFadeDomain
|
return this.mergedConfig.mentionLinkFadeDomain
|
||||||
},
|
},
|
||||||
|
|
|
@ -45,8 +45,8 @@
|
||||||
v-html="'@' + serverName"
|
v-html="'@' + serverName"
|
||||||
/></span>
|
/></span>
|
||||||
<span
|
<span
|
||||||
v-if="isYou"
|
v-if="isYou && shouldShowYous"
|
||||||
class="you"
|
:class="{ '-you': shouldBoldenYou }"
|
||||||
>{{ $t('status.you') }}</span>
|
>{{ $t('status.you') }}</span>
|
||||||
<!-- eslint-enable vue/no-v-html -->
|
<!-- eslint-enable vue/no-v-html -->
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -147,6 +147,11 @@
|
||||||
{{ $t('settings.greentext') }}
|
{{ $t('settings.greentext') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="mentionLinkShowYous">
|
||||||
|
{{ $t('settings.show_yous') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<ChoiceSetting
|
<ChoiceSetting
|
||||||
id="mentionLinkDisplay"
|
id="mentionLinkDisplay"
|
||||||
|
@ -181,6 +186,11 @@
|
||||||
{{ $t('settings.mention_link_fade_domain') }}
|
{{ $t('settings.mention_link_fade_domain') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting path="mentionLinkBoldenYou">
|
||||||
|
{{ $t('settings.mention_link_bolden_you') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -493,8 +493,10 @@
|
||||||
"mention_link_show_tooltip": "Show full user names as tooltip for remote users",
|
"mention_link_show_tooltip": "Show full user names as tooltip for remote users",
|
||||||
"mention_link_show_avatar": "Show user avatar beside the link",
|
"mention_link_show_avatar": "Show user avatar beside the link",
|
||||||
"mention_link_fade_domain": "Fade domains (e.g. @example.org in @foo@example.org)",
|
"mention_link_fade_domain": "Fade domains (e.g. @example.org in @foo@example.org)",
|
||||||
|
"mention_link_bolden_you": "Bolden text of your mention",
|
||||||
"fun": "Fun",
|
"fun": "Fun",
|
||||||
"greentext": "Meme arrows",
|
"greentext": "Meme arrows",
|
||||||
|
"show_yous": "Show (You)s",
|
||||||
"notifications": "Notifications",
|
"notifications": "Notifications",
|
||||||
"notification_setting_filters": "Filters",
|
"notification_setting_filters": "Filters",
|
||||||
"notification_setting_block_from_strangers": "Block notifications from users who you do not follow",
|
"notification_setting_block_from_strangers": "Block notifications from users who you do not follow",
|
||||||
|
|
|
@ -76,6 +76,8 @@ export const defaultState = {
|
||||||
mentionLinkShowTooltip: undefined, // instance default
|
mentionLinkShowTooltip: undefined, // instance default
|
||||||
mentionLinkShowAvatar: undefined, // instance default
|
mentionLinkShowAvatar: undefined, // instance default
|
||||||
mentionLinkFadeDomain: undefined, // instance default
|
mentionLinkFadeDomain: undefined, // instance default
|
||||||
|
mentionLinkShowYous: undefined, // instance default
|
||||||
|
mentionLinkBoldenYou: undefined, // instance default
|
||||||
hidePostStats: undefined, // instance default
|
hidePostStats: undefined, // instance default
|
||||||
hideUserStats: undefined, // instance default
|
hideUserStats: undefined, // instance default
|
||||||
virtualScrolling: undefined, // instance default
|
virtualScrolling: undefined, // instance default
|
||||||
|
|
|
@ -25,6 +25,8 @@ const defaultState = {
|
||||||
mentionLinkShowTooltip: true,
|
mentionLinkShowTooltip: true,
|
||||||
mentionLinkShowAvatar: false,
|
mentionLinkShowAvatar: false,
|
||||||
mentionLinkFadeDomain: true,
|
mentionLinkFadeDomain: true,
|
||||||
|
mentionLinkShowYous: false,
|
||||||
|
mentionLinkBoldenYou: true,
|
||||||
hideFilteredStatuses: false,
|
hideFilteredStatuses: false,
|
||||||
// bad name: actually hides posts of muted USERS
|
// bad name: actually hides posts of muted USERS
|
||||||
hideMutedPosts: false,
|
hideMutedPosts: false,
|
||||||
|
|
Loading…
Reference in a new issue