aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/notifications.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2020-11-17 20:32:56 +0200
committerHenry Jameson <me@hjkos.com>2020-11-17 20:32:56 +0200
commitb66b4124f40687dfccc9767bbdc46c2905cf294e (patch)
treed70f9bd9effd7d47e45cd3cebe641f81ff7b9ff3 /src/components/notifications/notifications.js
parent5c47aeeccf9f087a60de1280fa03486ccdf05fa5 (diff)
parentd905a6cb7047a40117714639b7b4578e0ab5f7a9 (diff)
Merge remote-tracking branch 'origin/develop' into fix-pinned
* origin/develop: change favicon dimensions for high res, add handling when favicon isn't available remove the favicon changes make badge just a ball, make it use theming add favicon badge for unread notifs
Diffstat (limited to 'src/components/notifications/notifications.js')
-rw-r--r--src/components/notifications/notifications.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js
index 4b479e13..49258563 100644
--- a/src/components/notifications/notifications.js
+++ b/src/components/notifications/notifications.js
@@ -6,6 +6,7 @@ import {
filteredNotificationsFromStore,
unseenNotificationsFromStore
} from '../../services/notification_utils/notification_utils.js'
+import FaviconService from '../../services/favicon_service/favicon_service.js'
import { library } from '@fortawesome/fontawesome-svg-core'
import { faCircleNotch } from '@fortawesome/free-solid-svg-icons'
@@ -75,8 +76,10 @@ const Notifications = {
watch: {
unseenCountTitle (count) {
if (count > 0) {
+ FaviconService.drawFaviconBadge()
this.$store.dispatch('setPageTitle', `(${count})`)
} else {
+ FaviconService.clearFaviconBadge()
this.$store.dispatch('setPageTitle', '')
}
}