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:
|
||||
- matching by regex, domain-specific, or catch-all
|
||||
- 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,6 +87,7 @@ const Notifications = {
|
|||
if (count > 0) {
|
||||
if (this.$store.getters.mergedConfig.showFaviconBadge)
|
||||
FaviconService.drawFaviconBadge()
|
||||
if (this.$store.getters.mergedConfig.showUnreadInTitle)
|
||||
this.$store.dispatch('setPageTitle', `(${count})`)
|
||||
} else {
|
||||
FaviconService.clearFaviconBadge()
|
||||
|
|
|
@ -709,9 +709,9 @@
|
|||
</div>
|
||||
|
||||
<div
|
||||
class="setting-item"
|
||||
v-if="expertLevel > 0"
|
||||
>
|
||||
<div class="setting-item">
|
||||
<h2>{{ $t('settings.requires_refresh') }}</h2>
|
||||
<small>{{ $t('settings.requires_refresh_exp') }}</small>
|
||||
<ul class="setting-list">
|
||||
|
@ -741,13 +741,22 @@
|
|||
{{ $t('settings.show_favicon_badge') }}
|
||||
</BooleanSetting>
|
||||
</li>
|
||||
<li>
|
||||
<BooleanSetting
|
||||
path="showUnreadInTitle"
|
||||
expert="1"
|
||||
@click="checkAutoReload"
|
||||
>
|
||||
{{ $t('settings.show_unread_in_title') }}
|
||||
</BooleanSetting>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="setting-item"
|
||||
v-if="this.$store.getters.mergedConfig.sillyFeatures"
|
||||
>
|
||||
<div class="setting-item">
|
||||
<h2>{{ $t('settings.silly_features') }}</h2>
|
||||
<ul class="setting-list">
|
||||
<li>
|
||||
|
@ -773,7 +782,6 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script src="./general_tab.js"></script>
|
||||
|
|
|
@ -784,6 +784,7 @@
|
|||
"show_panel_nav_shortcuts": "Show timeline navigation shortcuts at the top of the panel",
|
||||
"show_scrollbars": "Show side column's scrollbars",
|
||||
"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_yous": "Show (You)s",
|
||||
"silly_features": "Silly features",
|
||||
|
|
|
@ -130,6 +130,7 @@ export const defaultState = {
|
|||
dedupeBoosts: true,
|
||||
showFaviconBadge: true,
|
||||
autoRefreshOnRequired: true,
|
||||
showUnreadInTitle: true,
|
||||
renderMisskeyMarkdown: undefined,
|
||||
renderMfmOnHover: undefined, // instance default
|
||||
conversationDisplay: undefined, // instance default
|
||||
|
|
|
@ -86,6 +86,7 @@ const defaultState = {
|
|||
dedupeBoosts: true,
|
||||
showFaviconBadge: true,
|
||||
autoRefreshOnRequired: true,
|
||||
showUnreadInTitle: true,
|
||||
renderMisskeyMarkdown: true,
|
||||
renderMfmOnHover: false,
|
||||
conversationDisplay: 'linear',
|
||||
|
|
Loading…
Add table
Reference in a new issue