commit: ef277ae4e272d2f30dacc6e5d447d8b655538a67
parent 425919a0d292b79869ebefd2a4d52ed4db45d319
Author: Tusooa Zhu <tusooa@kazv.moe>
Date: Tue, 3 Aug 2021 19:58:24 -0400
Fix mobile shoutbox
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/components/side_drawer/side_drawer.js b/src/components/side_drawer/side_drawer.js
@@ -49,6 +49,7 @@ const SideDrawer = {
currentUser () {
return this.$store.state.users.currentUser
},
+ shout () { return this.$store.state.shout.channel.state === 'joined' },
unseenNotifications () {
return unseenNotificationsFromStore(this.$store)
},
diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue
@@ -106,10 +106,10 @@
</router-link>
</li>
<li
- v-if="chat"
+ v-if="shout"
@click="toggleDrawer"
>
- <router-link :to="{ name: 'chat-panel' }">
+ <router-link :to="{ name: 'shout-panel' }">
<FAIcon
fixed-width
class="fa-scale-110 fa-old-padding"