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:
|
- 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
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ const Notifications = {
|
||||||
watch: {
|
watch: {
|
||||||
unseenCountTitle (count) {
|
unseenCountTitle (count) {
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
|
if (this.$store.getters.mergedConfig.showFaviconBadge)
|
||||||
FaviconService.drawFaviconBadge()
|
FaviconService.drawFaviconBadge()
|
||||||
this.$store.dispatch('setPageTitle', `(${count})`)
|
this.$store.dispatch('setPageTitle', `(${count})`)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -293,6 +293,14 @@
|
||||||
{{ $t('settings.dedupe_boosts') }}
|
{{ $t('settings.dedupe_boosts') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<BooleanSetting
|
||||||
|
path="showFaviconBadge"
|
||||||
|
expert="1"
|
||||||
|
>
|
||||||
|
{{ $t('settings.show_favicon_badge') }}
|
||||||
|
</BooleanSetting>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<h3>{{ $t('settings.columns') }}</h3>
|
<h3>{{ $t('settings.columns') }}</h3>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -775,6 +775,7 @@
|
||||||
"settings_profiles_show": "Show all settings profiles",
|
"settings_profiles_show": "Show all settings profiles",
|
||||||
"settings_profiles_unshow": "Hide all settings profiles",
|
"settings_profiles_unshow": "Hide all settings profiles",
|
||||||
"show_admin_badge": "Show \"Admin\" badge in my profile",
|
"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_moderator_badge": "Show \"Moderator\" badge in my profile",
|
||||||
"show_nav_shortcuts": "Show extra navigation shortcuts in top panel",
|
"show_nav_shortcuts": "Show extra navigation shortcuts in top panel",
|
||||||
"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",
|
||||||
|
|
|
@ -128,6 +128,7 @@ export const defaultState = {
|
||||||
recurseSearch: false,
|
recurseSearch: false,
|
||||||
recurseSearchLimit: 100,
|
recurseSearchLimit: 100,
|
||||||
dedupeBoosts: true,
|
dedupeBoosts: true,
|
||||||
|
showFaviconBadge: true,
|
||||||
renderMisskeyMarkdown: undefined,
|
renderMisskeyMarkdown: undefined,
|
||||||
renderMfmOnHover: undefined, // instance default
|
renderMfmOnHover: undefined, // instance default
|
||||||
conversationDisplay: undefined, // instance default
|
conversationDisplay: undefined, // instance default
|
||||||
|
|
|
@ -84,6 +84,7 @@ const defaultState = {
|
||||||
recurseSearch: false,
|
recurseSearch: false,
|
||||||
recurseSearchLimit: 100,
|
recurseSearchLimit: 100,
|
||||||
dedupeBoosts: true,
|
dedupeBoosts: true,
|
||||||
|
showFaviconBadge: true,
|
||||||
renderMisskeyMarkdown: true,
|
renderMisskeyMarkdown: true,
|
||||||
renderMfmOnHover: false,
|
renderMfmOnHover: false,
|
||||||
conversationDisplay: 'linear',
|
conversationDisplay: 'linear',
|
||||||
|
|
Loading…
Add table
Reference in a new issue