浏览代码

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

master
Adam Wan 5 年前
父节点
当前提交
e3d66db3d7
没有帐户链接到提交者的电子邮件

+ 5
- 0
interface_config.js 查看文件

38
      */
38
      */
39
     AUTHENTICATION_ENABLE: true,
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
      * The name of the toolbar buttons to display in the toolbar. If present,
47
      * The name of the toolbar buttons to display in the toolbar. If present,
43
      * the button will display. Exceptions are "livestreaming" and "recording"
48
      * the button will display. Exceptions are "livestreaming" and "recording"

+ 1
- 0
react/features/base/config/interfaceConfigWhitelist.js 查看文件

29
     'ENFORCE_NOTIFICATION_AUTO_DISMISS_TIMEOUT',
29
     'ENFORCE_NOTIFICATION_AUTO_DISMISS_TIMEOUT',
30
     'FILM_STRIP_MAX_HEIGHT',
30
     'FILM_STRIP_MAX_HEIGHT',
31
     'GENERATE_ROOMNAMES_ON_WELCOME_PAGE',
31
     'GENERATE_ROOMNAMES_ON_WELCOME_PAGE',
32
+    'HIDE_INVITE_MORE_HEADER',
32
     'INDICATOR_FONT_SIZES',
33
     'INDICATOR_FONT_SIZES',
33
     'INITIAL_TOOLBAR_TIMEOUT',
34
     'INITIAL_TOOLBAR_TIMEOUT',
34
     'INVITATION_POWERED_BY',
35
     'INVITATION_POWERED_BY',

+ 5
- 1
react/features/conference/components/web/InviteMore.js 查看文件

9
 import { beginAddPeople } from '../../../invite';
9
 import { beginAddPeople } from '../../../invite';
10
 import { isToolboxVisible } from '../../../toolbox';
10
 import { isToolboxVisible } from '../../../toolbox';
11
 
11
 
12
+declare var interfaceConfig: Object;
13
+
12
 type Props = {
14
 type Props = {
13
 
15
 
14
     /**
16
     /**
74
  */
76
  */
75
 function mapStateToProps(state) {
77
 function mapStateToProps(state) {
76
     const participantCount = getParticipantCount(state);
78
     const participantCount = getParticipantCount(state);
79
+    const isAlone = participantCount === 1;
80
+    const hide = interfaceConfig.HIDE_INVITE_MORE_HEADER;
77
 
81
 
78
     return {
82
     return {
79
         _tileViewEnabled: state['features/video-layout'].tileViewEnabled,
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
 

正在加载...
取消
保存