Skip to content

Commit

Permalink
fix(RightSidebar): hide sidebar button in lobby
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme authored and backportbot[bot] committed Aug 21, 2024
1 parent 3b4b994 commit 55bcc80
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/RightSidebar/RightSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
-->

<template>
<NcAppSidebar v-if="token"
<NcAppSidebar v-if="isSidebarAvailable"
:open="opened"
:name="conversation.displayName"
:title="conversation.displayName"
Expand Down Expand Up @@ -197,11 +197,14 @@ export default {
},

computed: {
isSidebarAvailable() {
return this.token && !this.isInLobby
},
show() {
return this.$store.getters.getSidebarStatus
},
opened() {
return !this.isInLobby && this.show
return this.isSidebarAvailable && this.show
},
token() {
return this.$store.getters.getToken()
Expand Down

0 comments on commit 55bcc80

Please sign in to comment.