add option to disable favicon badge
This commit is contained in:
parent
d575980d1e
commit
698a13b28c
6 changed files with 14 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
|||
- 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
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -85,7 +85,8 @@ const Notifications = {
|
|||
watch: {
|
||||
unseenCountTitle (count) {
|
||||
if (count > 0) {
|
||||
FaviconService.drawFaviconBadge()
|
||||
if (this.$store.getters.mergedConfig.showFaviconBadge)
|
||||
FaviconService.drawFaviconBadge()
|
||||
this.$store.dispatch('setPageTitle', `(${count})`)
|
||||
} else {
|
||||
FaviconService.clearFaviconBadge()
|
||||
|
|
|
@ -293,6 +293,14 @@
|
|||
{{ $t('settings.dedupe_boosts') }}
|
||||
</BooleanSetting>
|
||||
</li>
|
||||
<li>
|
||||
<BooleanSetting
|
||||
path="showFaviconBadge"
|
||||
expert="1"
|
||||
>
|
||||
{{ $t('settings.show_favicon_badge') }}
|
||||
</BooleanSetting>
|
||||
</li>
|
||||
<li>
|
||||
<h3>{{ $t('settings.columns') }}</h3>
|
||||
</li>
|
||||
|
|
|
@ -775,6 +775,7 @@
|
|||
"settings_profiles_show": "Show all settings profiles",
|
||||
"settings_profiles_unshow": "Hide all settings profiles",
|
||||
"show_admin_badge": "Show \"Admin\" badge in my profile",
|
||||
"show_favicon_badge": "Show a badge on the page's favicon when there are unread notifications (requires refresh)",
|
||||
"show_moderator_badge": "Show \"Moderator\" badge in my profile",
|
||||
"show_nav_shortcuts": "Show extra navigation shortcuts in top panel",
|
||||
"show_panel_nav_shortcuts": "Show timeline navigation shortcuts at the top of the panel",
|
||||
|
|
|
@ -128,6 +128,7 @@ export const defaultState = {
|
|||
recurseSearch: false,
|
||||
recurseSearchLimit: 100,
|
||||
dedupeBoosts: true,
|
||||
showFaviconBadge: true,
|
||||
renderMisskeyMarkdown: undefined,
|
||||
renderMfmOnHover: undefined, // instance default
|
||||
conversationDisplay: undefined, // instance default
|
||||
|
|
|
@ -84,6 +84,7 @@ const defaultState = {
|
|||
recurseSearch: false,
|
||||
recurseSearchLimit: 100,
|
||||
dedupeBoosts: true,
|
||||
showFaviconBadge: true,
|
||||
renderMisskeyMarkdown: true,
|
||||
renderMfmOnHover: false,
|
||||
conversationDisplay: 'linear',
|
||||
|
|
Loading…
Add table
Reference in a new issue