Pārlūkot izejas kodu

feat: Hide Invite more when invite button is disabled.

master
damencho 5 gadus atpakaļ
vecāks
revīzija
66505666df

+ 5
- 2
react/features/conference/components/web/InviteMore.js Parādīt failu

@@ -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
 

Notiek ielāde…
Atcelt
Saglabāt