diff options
Diffstat (limited to 'src/views/MainView.vue')
-rw-r--r-- | src/views/MainView.vue | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/views/MainView.vue b/src/views/MainView.vue index d904e6b04..ad96fd035 100644 --- a/src/views/MainView.vue +++ b/src/views/MainView.vue @@ -2,10 +2,17 @@ <div class="main-view"> <LobbyScreen v-if="isInLobby" /> <template v-else> - <TopBar :force-white-icons="showChatInSidebar" /> + <TopBar + :is-in-call="showChatInSidebar" + :is-grid="isGrid" + @changeView="handleChangeView" /> <ChatView v-if="!showChatInSidebar" :token="token" /> <template v-else> - <CallView :grid-width="mainViewWidth" :grid-height="mainViewHeight" /> + <CallView + :is-grid="isGrid" + :grid-width="mainViewWidth" + :grid-height="mainViewHeight" + :token="token" /> </template> </template> </div> @@ -41,6 +48,7 @@ export default { return { mainViewWidth: 0, mainViewHeight: 0, + isGrid: true, } }, @@ -111,6 +119,10 @@ export default { this.mainViewHeight = this.mainView.clientHeight } }, + + handleChangeView() { + this.isGrid = !this.isGrid + }, }, // FIXME reactivate once Signaling is done correctly per conversation again. |