|
@@ -27,7 +27,11 @@ import {
|
27
|
27
|
getParticipantCount,
|
28
|
28
|
isEveryoneModerator
|
29
|
29
|
} from '../../../base/participants';
|
30
|
|
-import { openSettingsDialog, SETTINGS_TABS } from '../../../settings';
|
|
30
|
+import {
|
|
31
|
+ SETTINGS_TABS,
|
|
32
|
+ openSettingsDialog,
|
|
33
|
+ shouldShowModeratorSettings
|
|
34
|
+} from '../../../settings';
|
31
|
35
|
import { MuteEveryonesVideoDialog } from '../../../video-menu/components';
|
32
|
36
|
|
33
|
37
|
const useStyles = makeStyles(theme => {
|
|
@@ -81,6 +85,7 @@ export const FooterContextMenu = ({ isOpen, onDrawerClose, onMouseLeave }: Props
|
81
|
85
|
const dispatch = useDispatch();
|
82
|
86
|
const isModerationSupported = useSelector(isAvModerationSupported());
|
83
|
87
|
const allModerators = useSelector(isEveryoneModerator);
|
|
88
|
+ const isModeratorSettingsTabEnabled = useSelector(shouldShowModeratorSettings);
|
84
|
89
|
const participantCount = useSelector(getParticipantCount);
|
85
|
90
|
const isAudioModerationEnabled = useSelector(isAvModerationEnabled(MEDIA_TYPE.AUDIO));
|
86
|
91
|
const isVideoModerationEnabled = useSelector(isAvModerationEnabled(MEDIA_TYPE.VIDEO));
|
|
@@ -146,14 +151,16 @@ export const FooterContextMenu = ({ isOpen, onDrawerClose, onMouseLeave }: Props
|
146
|
151
|
</div>
|
147
|
152
|
</ContextMenuItemGroup>
|
148
|
153
|
)}
|
149
|
|
- <ContextMenuItemGroup
|
150
|
|
- actions = { [ {
|
151
|
|
- accessibilityLabel: t('participantsPane.actions.moreModerationControls'),
|
152
|
|
- id: 'participants-pane-open-moderation-control-settings',
|
153
|
|
- icon: IconHorizontalPoints,
|
154
|
|
- onClick: openModeratorSettings,
|
155
|
|
- text: t('participantsPane.actions.moreModerationControls')
|
156
|
|
- } ] } />
|
|
154
|
+ {isModeratorSettingsTabEnabled && (
|
|
155
|
+ <ContextMenuItemGroup
|
|
156
|
+ actions = { [ {
|
|
157
|
+ accessibilityLabel: t('participantsPane.actions.moreModerationControls'),
|
|
158
|
+ id: 'participants-pane-open-moderation-control-settings',
|
|
159
|
+ icon: IconHorizontalPoints,
|
|
160
|
+ onClick: openModeratorSettings,
|
|
161
|
+ text: t('participantsPane.actions.moreModerationControls')
|
|
162
|
+ } ] } />
|
|
163
|
+ )}
|
157
|
164
|
</ContextMenu>
|
158
|
165
|
);
|
159
|
166
|
};
|