Browse Source

fix(toolbar-buttons) Hide/show invite button based on toolbarButtons

master
hmuresan 4 years ago
parent
commit
74026e743c

+ 2
- 1
react/features/participants-pane/components/web/MeetingParticipantList.js View File

4
 import { useTranslation } from 'react-i18next';
4
 import { useTranslation } from 'react-i18next';
5
 import { useDispatch } from 'react-redux';
5
 import { useDispatch } from 'react-redux';
6
 
6
 
7
+import { isToolbarButtonEnabled } from '../../../base/config/functions.web';
7
 import { openDialog } from '../../../base/dialog';
8
 import { openDialog } from '../../../base/dialog';
8
 import {
9
 import {
9
     getParticipantCountWithFake,
10
     getParticipantCountWithFake,
160
     // and we will not re-render on change, but if count changes we will do
161
     // and we will not re-render on change, but if count changes we will do
161
     const participantsCount = getParticipantCountWithFake(state);
162
     const participantsCount = getParticipantCountWithFake(state);
162
 
163
 
163
-    const showInviteButton = shouldRenderInviteButton(state);
164
+    const showInviteButton = shouldRenderInviteButton(state) && isToolbarButtonEnabled('invite', state);
164
 
165
 
165
     return {
166
     return {
166
         sortedParticipantIds,
167
         sortedParticipantIds,

Loading…
Cancel
Save