Skip to content

Commit

Permalink
Merge pull request #13057 from nextcloud/fix/hide-sidebar-in-lobby
Browse files Browse the repository at this point in the history
  • Loading branch information
Antreesy authored Aug 21, 2024
2 parents 287c27e + dd93956 commit 68b8315
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 @@ -4,7 +4,7 @@
-->

<template>
<NcAppSidebar v-if="token"
<NcAppSidebar v-if="isSidebarAvailable"
:open="opened"
:name="conversation.displayName"
:title="conversation.displayName"
Expand Down Expand Up @@ -172,11 +172,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 68b8315

Please sign in to comment.