aboutsummaryrefslogtreecommitdiff
path: root/src/components/mobile_nav/mobile_nav.js
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-07-14 11:44:06 +0300
committerShpuld Shpuldson <shp@cock.li>2020-07-14 11:44:06 +0300
commitcac1418affbc0ae91bce2a4d4c14046e73484116 (patch)
treeb8a9ef91853d7f4d3f35e632e0b3e71b5dd79c7d /src/components/mobile_nav/mobile_nav.js
parent78ec84477e978a654ecfd482157dbf04a69f32e2 (diff)
parent3e09a708f600b47dde831eeddb412828b38a0cf4 (diff)
fix merge conflicts
Diffstat (limited to 'src/components/mobile_nav/mobile_nav.js')
-rw-r--r--src/components/mobile_nav/mobile_nav.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/mobile_nav/mobile_nav.js b/src/components/mobile_nav/mobile_nav.js
index c1166a0c..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: {
@@ -30,7 +31,11 @@ const MobileNav = {
return this.unseenNotifications.length
},
hideSitename () { return this.$store.state.instance.hideSitename },
- sitename () { return this.$store.state.instance.name }
+ sitename () { return this.$store.state.instance.name },
+ isChat () {
+ return this.$route.name === 'chat'
+ },
+ ...mapGetters(['unreadChatCount'])
},
methods: {
toggleMobileSidebar () {