diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-12-04 11:20:01 +0200 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-12-04 11:20:01 +0200 |
| commit | 1fd1553a1c06f22ce5718b16814d0f03688fdc06 (patch) | |
| tree | 6416934d1cf657b4b7fe27f628add4940c356a74 /src/components/notifications/notifications.js | |
| parent | 15bed586dcd1d10a6a05c664cf5bab72cdbf2a46 (diff) | |
| parent | 42c747a342cd7d435dcbe411276ac4999ff92395 (diff) | |
Merge branch 'develop' into feat/report-notification
Diffstat (limited to 'src/components/notifications/notifications.js')
| -rw-r--r-- | src/components/notifications/notifications.js | 3 |
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', '') } } |
