Browse Source

feat: Hide Invite more when invite button is disabled.

j8
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,7 +7,10 @@ import { Icon, IconInviteMore } from '../../../base/icons';
7 7
 import { getParticipantCount } from '../../../base/participants';
8 8
 import { connect } from '../../../base/redux';
9 9
 import { beginAddPeople } from '../../../invite';
10
-import { isToolboxVisible } from '../../../toolbox';
10
+import {
11
+    isButtonEnabled,
12
+    isToolboxVisible
13
+} from '../../../toolbox';
11 14
 
12 15
 declare var interfaceConfig: Object;
13 16
 
@@ -81,7 +84,7 @@ function mapStateToProps(state) {
81 84
 
82 85
     return {
83 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