Skip to content

Commit

Permalink
Merge pull request #13070 from nextcloud/backport/13057/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(RightSidebar): hide sidebar button in lobby
  • Loading branch information
ShGKme authored Aug 21, 2024
2 parents 00bb210 + 55bcc80 commit d6084b7
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 d6084b7

Please sign in to comment.