diff --git a/src/components/TopBar/TopBar.vue b/src/components/TopBar/TopBar.vue index e91668771..6c6378507 100644 --- a/src/components/TopBar/TopBar.vue +++ b/src/components/TopBar/TopBar.vue @@ -77,42 +77,52 @@ - -
- + + - - - - - - {{ unreadMessagesCounter }} - -
+ type="tertiary" + @click="openSidebar"> + + - - - - - + + @@ -138,6 +148,7 @@ import getParticipants from '../../mixins/getParticipants.js' import TopBarMenu from './TopBarMenu.vue' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import CallTime from './CallTime.vue' +import MenuIcon from 'vue-material-design-icons/Menu.vue' export default { name: 'TopBar', @@ -158,6 +169,7 @@ export default { TopBarMenu, NcButton, CallTime, + MenuIcon, }, mixins: [ @@ -270,7 +282,7 @@ export default { }, participantsInCall() { - return this.$store.getters.participantsInCall(this.token) + return this.$store.getters.participantsInCall(this.token) ? this.$store.getters.participantsInCall(this.token) : '' }, }, @@ -305,6 +317,7 @@ export default { // Starts and stops the getParticipantsMixin logic isOneToOneConversation(newValue) { + console.log(newValue) if (newValue) { this.initialiseGetParticipantsMixin() } else { @@ -342,7 +355,7 @@ export default { }, openSidebar(activeTab) { - if (activeTab) { + if (typeof activeTab === 'string') { emit('spreed:select-active-sidebar-tab', activeTab) } this.$store.dispatch('showSidebar')