Fix lint
parent
349ace9fee
commit
2623ef2eaa
|
|
@ -254,57 +254,57 @@ const ListPeer = (props) =>
|
||||||
}
|
}
|
||||||
{ isModerator && micConsumer &&
|
{ isModerator && micConsumer &&
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={intl.formatMessage({
|
title={intl.formatMessage({
|
||||||
id : 'tooltip.muteParticipant',
|
id : 'tooltip.muteParticipant',
|
||||||
defaultMessage : 'Mute globally participant mic'
|
defaultMessage : 'Mute globally participant mic'
|
||||||
})}
|
})}
|
||||||
placement='bottom'
|
placement='bottom'
|
||||||
>
|
|
||||||
<IconButton
|
|
||||||
className={classes.buttons}
|
|
||||||
style={{ color: green[500] }}
|
|
||||||
disabled={!isModerator || peer.stopPeerAudioInProgress}
|
|
||||||
onClick={(e) =>
|
|
||||||
{
|
|
||||||
e.stopPropagation();
|
|
||||||
|
|
||||||
roomClient.mutePeer(peer.id);
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{ !micConsumer.remotelyPaused ?
|
<IconButton
|
||||||
<MicIcon />
|
className={classes.buttons}
|
||||||
:
|
style={{ color: green[500] }}
|
||||||
<MicOffIcon />
|
disabled={!isModerator || peer.stopPeerAudioInProgress}
|
||||||
}
|
onClick={(e) =>
|
||||||
</IconButton>
|
{
|
||||||
</Tooltip>
|
e.stopPropagation();
|
||||||
|
|
||||||
|
roomClient.mutePeer(peer.id);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{ !micConsumer.remotelyPaused ?
|
||||||
|
<MicIcon />
|
||||||
|
:
|
||||||
|
<MicOffIcon />
|
||||||
|
}
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
}
|
}
|
||||||
{ isModerator && webcamConsumer &&
|
{ isModerator && webcamConsumer &&
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={intl.formatMessage({
|
title={intl.formatMessage({
|
||||||
id : 'tooltip.muteParticipantVideo',
|
id : 'tooltip.muteParticipantVideo',
|
||||||
defaultMessage : 'Mute globally participant video'
|
defaultMessage : 'Mute globally participant video'
|
||||||
})}
|
})}
|
||||||
placement='bottom'
|
placement='bottom'
|
||||||
>
|
|
||||||
<IconButton
|
|
||||||
className={classes.buttons}
|
|
||||||
style={{ color: green[500] }}
|
|
||||||
disabled={!isModerator || peer.stopPeerVideoInProgress}
|
|
||||||
onClick={(e) =>
|
|
||||||
{
|
|
||||||
e.stopPropagation();
|
|
||||||
|
|
||||||
roomClient.stopPeerVideo(peer.id);
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{ !webcamConsumer.remotelyPaused ?
|
<IconButton
|
||||||
<VideocamIcon />
|
className={classes.buttons}
|
||||||
:
|
style={{ color: green[500] }}
|
||||||
<VideocamOffIcon />
|
disabled={!isModerator || peer.stopPeerVideoInProgress}
|
||||||
}
|
onClick={(e) =>
|
||||||
</IconButton>
|
{
|
||||||
</Tooltip>
|
e.stopPropagation();
|
||||||
|
|
||||||
|
roomClient.stopPeerVideo(peer.id);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{ !webcamConsumer.remotelyPaused ?
|
||||||
|
<VideocamIcon />
|
||||||
|
:
|
||||||
|
<VideocamOffIcon />
|
||||||
|
}
|
||||||
|
</IconButton>
|
||||||
|
</Tooltip>
|
||||||
}
|
}
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue