ソースを参照

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

master
hmuresan 4年前
コミット
74026e743c
1個のファイルの変更2行の追加1行の削除
  1. 2
    1
      react/features/participants-pane/components/web/MeetingParticipantList.js

+ 2
- 1
react/features/participants-pane/components/web/MeetingParticipantList.js ファイルの表示

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

読み込み中…
キャンセル
保存