Browse Source

config: add ability to hide the "invite more" header button

master
Adam Wan 5 years ago
parent
commit
e3d66db3d7
No account linked to committer's email address

+ 5
- 0
interface_config.js View File

@@ -38,6 +38,11 @@ var interfaceConfig = {
38 38
      */
39 39
     AUTHENTICATION_ENABLE: true,
40 40
 
41
+    /**
42
+     * Hide the invite prompt in the header when alone in the meeting.
43
+     */
44
+    HIDE_INVITE_MORE_HEADER: false,
45
+
41 46
     /**
42 47
      * The name of the toolbar buttons to display in the toolbar. If present,
43 48
      * the button will display. Exceptions are "livestreaming" and "recording"

+ 1
- 0
react/features/base/config/interfaceConfigWhitelist.js View File

@@ -29,6 +29,7 @@ export default [
29 29
     'ENFORCE_NOTIFICATION_AUTO_DISMISS_TIMEOUT',
30 30
     'FILM_STRIP_MAX_HEIGHT',
31 31
     'GENERATE_ROOMNAMES_ON_WELCOME_PAGE',
32
+    'HIDE_INVITE_MORE_HEADER',
32 33
     'INDICATOR_FONT_SIZES',
33 34
     'INITIAL_TOOLBAR_TIMEOUT',
34 35
     'INVITATION_POWERED_BY',

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

@@ -9,6 +9,8 @@ import { connect } from '../../../base/redux';
9 9
 import { beginAddPeople } from '../../../invite';
10 10
 import { isToolboxVisible } from '../../../toolbox';
11 11
 
12
+declare var interfaceConfig: Object;
13
+
12 14
 type Props = {
13 15
 
14 16
     /**
@@ -74,10 +76,12 @@ function InviteMore({
74 76
  */
75 77
 function mapStateToProps(state) {
76 78
     const participantCount = getParticipantCount(state);
79
+    const isAlone = participantCount === 1;
80
+    const hide = interfaceConfig.HIDE_INVITE_MORE_HEADER;
77 81
 
78 82
     return {
79 83
         _tileViewEnabled: state['features/video-layout'].tileViewEnabled,
80
-        _visible: isToolboxVisible(state) && participantCount === 1
84
+        _visible: isToolboxVisible(state) && isAlone && !hide
81 85
     };
82 86
 }
83 87
 

Loading…
Cancel
Save