Browse Source

feat: Hide Invite more when invite button is disabled.

master
damencho 5 years ago
parent
commit
66505666df
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      react/features/conference/components/web/InviteMore.js

+ 5
- 2
react/features/conference/components/web/InviteMore.js View File

7
 import { getParticipantCount } from '../../../base/participants';
7
 import { getParticipantCount } from '../../../base/participants';
8
 import { connect } from '../../../base/redux';
8
 import { connect } from '../../../base/redux';
9
 import { beginAddPeople } from '../../../invite';
9
 import { beginAddPeople } from '../../../invite';
10
-import { isToolboxVisible } from '../../../toolbox';
10
+import {
11
+    isButtonEnabled,
12
+    isToolboxVisible
13
+} from '../../../toolbox';
11
 
14
 
12
 declare var interfaceConfig: Object;
15
 declare var interfaceConfig: Object;
13
 
16
 
81
 
84
 
82
     return {
85
     return {
83
         _tileViewEnabled: state['features/video-layout'].tileViewEnabled,
86
         _tileViewEnabled: state['features/video-layout'].tileViewEnabled,
84
-        _visible: isToolboxVisible(state) && isAlone && !hide
87
+        _visible: isToolboxVisible(state) && isButtonEnabled('invite') && isAlone && !hide
85
     };
88
     };
86
 }
89
 }
87
 
90
 

Loading…
Cancel
Save