aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/notifications.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2020-11-17 18:25:05 +0000
committerShpuld Shpludson <shp@cock.li>2020-11-17 18:25:05 +0000
commitd905a6cb7047a40117714639b7b4578e0ab5f7a9 (patch)
treef85c588cd4cff4d7e9566204c6abfdab9184f4e5 /src/components/notifications/notifications.js
parentfa2884a8052bfe4f4d9d069ff9d1d15765c3bba8 (diff)
parent56c1d65384603c9a57e16210aca23829235c7893 (diff)
Merge branch 'feat/favicon-badge' into 'develop'
Add favicon badge for unread notifs See merge request pleroma/pleroma-fe!1273
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', '')
}
}