diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-01-24 23:02:03 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-01-24 23:02:03 +0100 |
commit | 63bac9203aedf4a450f802809e48e88ad29298b5 (patch) | |
tree | e6ff4b71bdb25424cadeb278c27591ef96ffea97 /src/components/CallView/Grid/Grid.vue | |
parent | ec7af133fa21e299564f680f79ac6f5cb134ae23 (diff) |
Fix "switch-to-screen-id" event
Since the LocalMediaControls were moved to the TopBar that component is
no longer a descendant of CallView, so the "switch-to-screen-id" event
is not propagated up to it. Therefore it is replaced by an event bus
event, which can be listened from the CallView.
Moreover, the "switch-to-screen-id" events emitted by other components
is not correctly propagated either up to the CallView. For consistency
and simplicity the event is moved to an event bus event in those cases
too.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src/components/CallView/Grid/Grid.vue')
-rw-r--r-- | src/components/CallView/Grid/Grid.vue | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/components/CallView/Grid/Grid.vue b/src/components/CallView/Grid/Grid.vue index e54dc1f81..c7fe91e73 100644 --- a/src/components/CallView/Grid/Grid.vue +++ b/src/components/CallView/Grid/Grid.vue @@ -103,7 +103,6 @@ :local-media-model="localMediaModel" :video-container-aspect-ratio="videoContainerAspectRatio" :local-call-participant-model="localCallParticipantModel" - @switch-screen-to-id="switchScreenToId" @click-video="handleClickLocalVideo" /> </div> <button v-if="hasNextPage && gridWidth > 0" @@ -126,7 +125,6 @@ :local-media-model="localMediaModel" :video-container-aspect-ratio="videoContainerAspectRatio" :local-call-participant-model="localCallParticipantModel" - @switch-screen-to-id="switchScreenToId" @click-video="handleClickLocalVideo" /> <!-- page indicator (disabled) --> <div v-if="numberOfPages !== 0 && hasPagination && false" @@ -763,10 +761,6 @@ export default { this.$emit('click-local-video') }, - switchScreenToId(id) { - this.$emit('switch-screen-to-id', id) - }, - isSelected(callParticipantModel) { return callParticipantModel.attributes.peerId === this.$store.getters.selectedVideoPeerId }, |