diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-07-10 13:21:42 +0300 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-07-10 13:21:42 +0300 |
| commit | 0038a9794b4f12f9f57a6739c43910b289d18fe4 (patch) | |
| tree | 0cd5d2c77ef0b6d767c65f26587d9b8db96ee353 /src/components/mobile_nav/mobile_nav.js | |
| parent | c1a20079bef51dc38cb9826cee5bb2fbfe2cf68b (diff) | |
add simple red dot for chat notifs
Diffstat (limited to 'src/components/mobile_nav/mobile_nav.js')
| -rw-r--r-- | src/components/mobile_nav/mobile_nav.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/mobile_nav/mobile_nav.js b/src/components/mobile_nav/mobile_nav.js index cc4d7e38..4613d090 100644 --- a/src/components/mobile_nav/mobile_nav.js +++ b/src/components/mobile_nav/mobile_nav.js @@ -2,6 +2,7 @@ import SideDrawer from '../side_drawer/side_drawer.vue' import Notifications from '../notifications/notifications.vue' import { unseenNotificationsFromStore } from '../../services/notification_utils/notification_utils' import GestureService from '../../services/gesture_service/gesture_service' +import { mapGetters } from 'vuex' const MobileNav = { components: { @@ -33,7 +34,8 @@ const MobileNav = { sitename () { return this.$store.state.instance.name }, isChat () { return this.$route.name === 'chat' - } + }, + ...mapGetters(['unreadChatCount']) }, methods: { toggleMobileSidebar () { |
