add option to disable favicon badge

This commit is contained in:
notfire 2025-04-01 17:42:17 -04:00
parent d575980d1e
commit 698a13b28c
Signed by: notfire
GPG key ID: 3AFDACAAB4E56B16
6 changed files with 14 additions and 1 deletions

View file

@ -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
---

View file

@ -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()

View file

@ -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>

View file

@ -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",

View file

@ -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

View file

@ -84,6 +84,7 @@ const defaultState = {
recurseSearch: false,
recurseSearchLimit: 100,
dedupeBoosts: true,
showFaviconBadge: true,
renderMisskeyMarkdown: true,
renderMfmOnHover: false,
conversationDisplay: 'linear',