add option to disable showing unreads in the title, also a bit of cleanup
This commit is contained in:
parent
b819f30022
commit
0e218a71c4
6 changed files with 73 additions and 59 deletions
|
@ -23,7 +23,9 @@
|
||||||
- filters for reactions:
|
- filters for reactions:
|
||||||
- matching by regex, domain-specific, or catch-all
|
- matching by regex, domain-specific, or catch-all
|
||||||
- filters the actual reactions to post as well as notifications
|
- filters the actual reactions to post as well as notifications
|
||||||
- option to disable favicon badge when there's unread notifications
|
- for unreads:
|
||||||
|
- option to disable favicon badge changing on unreads
|
||||||
|
- option to disable title showing unreads
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,8 @@ const Notifications = {
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
if (this.$store.getters.mergedConfig.showFaviconBadge)
|
if (this.$store.getters.mergedConfig.showFaviconBadge)
|
||||||
FaviconService.drawFaviconBadge()
|
FaviconService.drawFaviconBadge()
|
||||||
this.$store.dispatch('setPageTitle', `(${count})`)
|
if (this.$store.getters.mergedConfig.showUnreadInTitle)
|
||||||
|
this.$store.dispatch('setPageTitle', `(${count})`)
|
||||||
} else {
|
} else {
|
||||||
FaviconService.clearFaviconBadge()
|
FaviconService.clearFaviconBadge()
|
||||||
this.$store.dispatch('setPageTitle', '')
|
this.$store.dispatch('setPageTitle', '')
|
||||||
|
|
|
@ -709,69 +709,77 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
class="setting-item"
|
||||||
v-if="expertLevel > 0"
|
v-if="expertLevel > 0"
|
||||||
>
|
>
|
||||||
<div class="setting-item">
|
<h2>{{ $t('settings.requires_refresh') }}</h2>
|
||||||
<h2>{{ $t('settings.requires_refresh') }}</h2>
|
<small>{{ $t('settings.requires_refresh_exp') }}</small>
|
||||||
<small>{{ $t('settings.requires_refresh_exp') }}</small>
|
<ul class="setting-list">
|
||||||
<ul class="setting-list">
|
<li>
|
||||||
<li>
|
<BooleanSetting
|
||||||
<BooleanSetting
|
path="autoRefreshOnRequired"
|
||||||
path="autoRefreshOnRequired"
|
expert="1"
|
||||||
expert="1"
|
>
|
||||||
>
|
{{ $t('settings.auto_refresh_on_required') }}
|
||||||
{{ $t('settings.auto_refresh_on_required') }}
|
</BooleanSetting>
|
||||||
</BooleanSetting>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<BooleanSetting
|
||||||
<BooleanSetting
|
path="dedupeBoosts"
|
||||||
path="dedupeBoosts"
|
expert="1"
|
||||||
expert="1"
|
@click="checkAutoReload"
|
||||||
@click="checkAutoReload"
|
>
|
||||||
>
|
{{ $t('settings.dedupe_boosts') }}
|
||||||
{{ $t('settings.dedupe_boosts') }}
|
</BooleanSetting>
|
||||||
</BooleanSetting>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<BooleanSetting
|
||||||
<BooleanSetting
|
path="showFaviconBadge"
|
||||||
path="showFaviconBadge"
|
expert="1"
|
||||||
expert="1"
|
@click="checkAutoReload"
|
||||||
@click="checkAutoReload"
|
>
|
||||||
>
|
{{ $t('settings.show_favicon_badge') }}
|
||||||
{{ $t('settings.show_favicon_badge') }}
|
</BooleanSetting>
|
||||||
</BooleanSetting>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
</ul>
|
<BooleanSetting
|
||||||
</div>
|
path="showUnreadInTitle"
|
||||||
|
expert="1"
|
||||||
|
@click="checkAutoReload"
|
||||||
|
>
|
||||||
|
{{ $t('settings.show_unread_in_title') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
class="setting-item"
|
||||||
v-if="this.$store.getters.mergedConfig.sillyFeatures"
|
v-if="this.$store.getters.mergedConfig.sillyFeatures"
|
||||||
>
|
>
|
||||||
<div class="setting-item">
|
<h2>{{ $t('settings.silly_features') }}</h2>
|
||||||
<h2>{{ $t('settings.silly_features') }}</h2>
|
<ul class="setting-list">
|
||||||
<ul class="setting-list">
|
<li>
|
||||||
<li>
|
<BooleanSetting
|
||||||
<BooleanSetting
|
path="recurseSearch"
|
||||||
path="recurseSearch"
|
>
|
||||||
>
|
{{ $t('settings.recurse_search') }}
|
||||||
{{ $t('settings.recurse_search') }}
|
</BooleanSetting>
|
||||||
</BooleanSetting>
|
<ul
|
||||||
<ul
|
class="setting-list suboptions"
|
||||||
class="setting-list suboptions"
|
:class="[{disabled: !recurseSearch}]"
|
||||||
:class="[{disabled: !recurseSearch}]"
|
>
|
||||||
>
|
<li>
|
||||||
<li>
|
<IntegerSetting
|
||||||
<IntegerSetting
|
path="recurseSearchLimit"
|
||||||
path="recurseSearchLimit"
|
:min="100"
|
||||||
:min="100"
|
>
|
||||||
>
|
{{ $t('settings.recurse_search_limit') }}
|
||||||
{{ $t('settings.recurse_search_limit') }}
|
</IntegerSetting>
|
||||||
</IntegerSetting>
|
</li>
|
||||||
</li>
|
</ul>
|
||||||
</ul>
|
</li>
|
||||||
</li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -784,6 +784,7 @@
|
||||||
"show_panel_nav_shortcuts": "Show timeline navigation shortcuts at the top of the panel",
|
"show_panel_nav_shortcuts": "Show timeline navigation shortcuts at the top of the panel",
|
||||||
"show_scrollbars": "Show side column's scrollbars",
|
"show_scrollbars": "Show side column's scrollbars",
|
||||||
"show_page_backgrounds": "Show page-specific backgrounds, e.g. for user profiles",
|
"show_page_backgrounds": "Show page-specific backgrounds, e.g. for user profiles",
|
||||||
|
"show_unread_in_title": "Show (x) in title for unread notifications",
|
||||||
"show_wider_shortcuts": "Show wider gap between top panel shortcuts",
|
"show_wider_shortcuts": "Show wider gap between top panel shortcuts",
|
||||||
"show_yous": "Show (You)s",
|
"show_yous": "Show (You)s",
|
||||||
"silly_features": "Silly features",
|
"silly_features": "Silly features",
|
||||||
|
|
|
@ -130,6 +130,7 @@ export const defaultState = {
|
||||||
dedupeBoosts: true,
|
dedupeBoosts: true,
|
||||||
showFaviconBadge: true,
|
showFaviconBadge: true,
|
||||||
autoRefreshOnRequired: true,
|
autoRefreshOnRequired: true,
|
||||||
|
showUnreadInTitle: true,
|
||||||
renderMisskeyMarkdown: undefined,
|
renderMisskeyMarkdown: undefined,
|
||||||
renderMfmOnHover: undefined, // instance default
|
renderMfmOnHover: undefined, // instance default
|
||||||
conversationDisplay: undefined, // instance default
|
conversationDisplay: undefined, // instance default
|
||||||
|
|
|
@ -86,6 +86,7 @@ const defaultState = {
|
||||||
dedupeBoosts: true,
|
dedupeBoosts: true,
|
||||||
showFaviconBadge: true,
|
showFaviconBadge: true,
|
||||||
autoRefreshOnRequired: true,
|
autoRefreshOnRequired: true,
|
||||||
|
showUnreadInTitle: true,
|
||||||
renderMisskeyMarkdown: true,
|
renderMisskeyMarkdown: true,
|
||||||
renderMfmOnHover: false,
|
renderMfmOnHover: false,
|
||||||
conversationDisplay: 'linear',
|
conversationDisplay: 'linear',
|
||||||
|
|
Loading…
Add table
Reference in a new issue