From 865c6569932ea58bd282a9917c4a4d301ea7f5ba Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Tue, 5 Mar 2024 09:12:24 +0100 Subject: [PATCH] refactor(TopBar): get rid of duplicated properties Signed-off-by: Maksim Sukharev [skip ci] --- src/components/TopBar/TopBar.vue | 3 +-- src/components/TopBar/TopBarMediaControls.vue | 21 ++++--------------- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/src/components/TopBar/TopBar.vue b/src/components/TopBar/TopBar.vue index 7e5b0293697a..8fb2d8b24899 100644 --- a/src/components/TopBar/TopBar.vue +++ b/src/components/TopBar/TopBar.vue @@ -87,8 +87,7 @@ class="local-media-controls dark-hover" :token="token" :model="localMediaModel" - :show-actions="!isSidebar" - :screen-sharing-button-hidden="isSidebar" + :is-sidebar="isSidebar" :local-call-participant-model="localCallParticipantModel" /> diff --git a/src/components/TopBar/TopBarMediaControls.vue b/src/components/TopBar/TopBarMediaControls.vue index 20af35667dea..ac6f35dc52da 100644 --- a/src/components/TopBar/TopBarMediaControls.vue +++ b/src/components/TopBar/TopBarMediaControls.vue @@ -70,7 +70,7 @@ :model="model" color="#ffffff" /> - - - @@ -186,18 +184,6 @@ export default { type: Object, required: true, }, - screenSharingButtonHidden: { - type: Boolean, - default: false, - }, - showActions: { - type: Boolean, - default: true, - }, - - /** - * In the sidebar the conversation settings are hidden - */ isSidebar: { type: Boolean, default: false, @@ -205,8 +191,9 @@ export default { }, setup() { - const isInCall = useIsInCall() - return { isInCall } + return { + isInCall: useIsInCall(), + } }, data() {