fix(av-moderation) Show Mute button when participant is unmuted (#10090)
Show Mute button instead of always showing Ask to Unmute Added aria-label
This commit is contained in:
parent
3aec980378
commit
eba58ad56b
|
@ -57,6 +57,7 @@ export default function ParticipantQuickAction({
|
||||||
case QUICK_ACTION_BUTTON.MUTE: {
|
case QUICK_ACTION_BUTTON.MUTE: {
|
||||||
return (
|
return (
|
||||||
<QuickActionButton
|
<QuickActionButton
|
||||||
|
aria-label = { `mute-${participantID}` }
|
||||||
onClick = { muteAudio(participantID) }
|
onClick = { muteAudio(participantID) }
|
||||||
primary = { true }>
|
primary = { true }>
|
||||||
{ muteParticipantButtonText }
|
{ muteParticipantButtonText }
|
||||||
|
|
|
@ -235,7 +235,9 @@ function MeetingParticipantItem({
|
||||||
}
|
}
|
||||||
|
|
||||||
const buttonType = _isModerationSupported
|
const buttonType = _isModerationSupported
|
||||||
? _localModerator ? QUICK_ACTION_BUTTON.ASK_TO_UNMUTE : _quickActionButtonType
|
? _localModerator && _audioMediaState !== MEDIA_STATE.UNMUTED
|
||||||
|
? QUICK_ACTION_BUTTON.ASK_TO_UNMUTE
|
||||||
|
: _quickActionButtonType
|
||||||
: '';
|
: '';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -44,10 +44,10 @@ class MuteVideoButton extends AbstractMuteVideoButton {
|
||||||
const { _videoTrackMuted, participantID, t } = this.props;
|
const { _videoTrackMuted, participantID, t } = this.props;
|
||||||
const muteConfig = _videoTrackMuted ? {
|
const muteConfig = _videoTrackMuted ? {
|
||||||
translationKey: 'videothumbnail.videoMuted',
|
translationKey: 'videothumbnail.videoMuted',
|
||||||
muteClassName: 'mutelink disabled'
|
muteClassName: 'mutevideolink disabled'
|
||||||
} : {
|
} : {
|
||||||
translationKey: 'videothumbnail.domuteVideo',
|
translationKey: 'videothumbnail.domuteVideo',
|
||||||
muteClassName: 'mutelink'
|
muteClassName: 'mutevideolink'
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue