Selaa lähdekoodia

fix(av-moderation) Show Mute button when participant is unmuted (#10090)

Show Mute button instead of always showing Ask to Unmute

Added aria-label
master
robertpin 4 vuotta sitten
vanhempi
commit
eba58ad56b
No account linked to committer's email address

+ 1
- 0
react/features/participants-pane/components/ParticipantQuickAction.js Näytä tiedosto

@@ -57,6 +57,7 @@ export default function ParticipantQuickAction({
57 57
     case QUICK_ACTION_BUTTON.MUTE: {
58 58
         return (
59 59
             <QuickActionButton
60
+                aria-label = { `mute-${participantID}` }
60 61
                 onClick = { muteAudio(participantID) }
61 62
                 primary = { true }>
62 63
                 { muteParticipantButtonText }

+ 3
- 1
react/features/participants-pane/components/web/MeetingParticipantItem.js Näytä tiedosto

@@ -235,7 +235,9 @@ function MeetingParticipantItem({
235 235
     }
236 236
 
237 237
     const buttonType = _isModerationSupported
238
-        ? _localModerator ? QUICK_ACTION_BUTTON.ASK_TO_UNMUTE : _quickActionButtonType
238
+        ? _localModerator && _audioMediaState !== MEDIA_STATE.UNMUTED
239
+            ? QUICK_ACTION_BUTTON.ASK_TO_UNMUTE
240
+            : _quickActionButtonType
239 241
         : '';
240 242
 
241 243
     return (

+ 2
- 2
react/features/video-menu/components/web/MuteVideoButton.js Näytä tiedosto

@@ -44,10 +44,10 @@ class MuteVideoButton extends AbstractMuteVideoButton {
44 44
         const { _videoTrackMuted, participantID, t } = this.props;
45 45
         const muteConfig = _videoTrackMuted ? {
46 46
             translationKey: 'videothumbnail.videoMuted',
47
-            muteClassName: 'mutelink disabled'
47
+            muteClassName: 'mutevideolink disabled'
48 48
         } : {
49 49
             translationKey: 'videothumbnail.domuteVideo',
50
-            muteClassName: 'mutelink'
50
+            muteClassName: 'mutevideolink'
51 51
         };
52 52
 
53 53
         return (

Loading…
Peruuta
Tallenna