Skip to content

Commit

Permalink
Merge pull request #692 from Real-Dev-Squad/fix/loader
Browse files Browse the repository at this point in the history
[Live-site] - Fix the Loader when kicking out the participants
  • Loading branch information
satyam73 authored Oct 27, 2023
2 parents 55dfac0 + 9247e59 commit 9dddd20
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/components/live-participants.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
)
}}
{{#if (not-eq peer.id this.liveService.localPeer.id)}}
{{#if this.liveService.isUserRemoved}}
{{#if
(and
this.liveService.isUserRemoved (eq @peerToRemove.id peer.id)
)
}}
<div class='loading'>
<span></span>
<span></span>
Expand Down
4 changes: 4 additions & 0 deletions app/components/live-sidebar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,31 @@
@peers={{@peers}}
@minimumParticipants={{this.liveService.hostRole}}
@openKickoutModal={{@openKickoutModal}}
@peerToRemove={{@peerToRemove}}
/>
<LiveParticipants
@user='Mavens'
@role='maven'
@peers={{@peers}}
@minimumParticipants={{this.liveService.mavenRole}}
@openKickoutModal={{@openKickoutModal}}
@peerToRemove={{@peerToRemove}}
/>
<LiveParticipants
@user='Moderators'
@role='moderator'
@peers={{@peers}}
@minimumParticipants={{this.liveService.moderatorRole}}
@openKickoutModal={{@openKickoutModal}}
@peerToRemove={{@peerToRemove}}
/>
<LiveParticipants
@user='Guests'
@role='guest'
@peers={{@peers}}
@minimumParticipants={{this.liveService.guestRole}}
@openKickoutModal={{@openKickoutModal}}
@peerToRemove={{@peerToRemove}}
/>
</div>
</div>
1 change: 1 addition & 0 deletions app/templates/live.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<LiveSidebar
@openKickoutModal={{this.openKickoutModal}}
@peers={{this.liveService.peers}}
@peerToRemove={{this.peerToRemove}}
/>
{{/if}}
</div>
Expand Down

0 comments on commit 9dddd20

Please sign in to comment.