浏览代码

feat: Adds interface config to hide lobby button. (#7619)

* feat: Adds interface config to hide lobby button.

* squash: Moves the config to config.js and add it to mobile.
master
Дамян Минков 5 年前
父节点
当前提交
d169bd5007
没有帐户链接到提交者的电子邮件

+ 3
- 0
config.js 查看文件

340
     // UI
340
     // UI
341
     //
341
     //
342
 
342
 
343
+    // Hides lobby button
344
+    // hideLobbyButton: false,
345
+
343
     // Require users to always specify a display name.
346
     // Require users to always specify a display name.
344
     // requireDisplayName: true,
347
     // requireDisplayName: true,
345
 
348
 

+ 1
- 1
react/features/connection-stats/components/ConnectionStatsTable.js 查看文件

226
 
226
 
227
     /**
227
     /**
228
      * Creates a a table row as a ReactElement for displaying codec, if present.
228
      * Creates a a table row as a ReactElement for displaying codec, if present.
229
-     * This will typically be something like "Codecs (A/V): opus, vp8".
229
+     * This will typically be something like "Codecs (A/V): Opus, vp8".
230
      *
230
      *
231
      * @private
231
      * @private
232
      * @returns {ReactElement}
232
      * @returns {ReactElement}

+ 2
- 1
react/features/lobby/components/native/LobbyModeButton.js 查看文件

66
 export function _mapStateToProps(state: Object): $Shape<Props> {
66
 export function _mapStateToProps(state: Object): $Shape<Props> {
67
     const conference = getCurrentConference(state);
67
     const conference = getCurrentConference(state);
68
     const { lobbyEnabled } = state['features/lobby'];
68
     const { lobbyEnabled } = state['features/lobby'];
69
+    const { hideLobbyButton } = state['features/base/config'];
69
     const lobbySupported = conference && conference.isLobbySupported();
70
     const lobbySupported = conference && conference.isLobbySupported();
70
 
71
 
71
     return {
72
     return {
72
         lobbyEnabled,
73
         lobbyEnabled,
73
-        visible: lobbySupported && isLocalParticipantModerator(state)
74
+        visible: lobbySupported && isLocalParticipantModerator(state) && !hideLobbyButton
74
     };
75
     };
75
 }
76
 }
76
 
77
 

+ 2
- 0
react/features/lobby/components/web/LobbySection.js 查看文件

132
  */
132
  */
133
 function mapStateToProps(state: Object): $Shape<Props> {
133
 function mapStateToProps(state: Object): $Shape<Props> {
134
     const { conference } = state['features/base/conference'];
134
     const { conference } = state['features/base/conference'];
135
+    const { hideLobbyButton } = state['features/base/config'];
135
 
136
 
136
     return {
137
     return {
137
         _lobbyEnabled: state['features/lobby'].lobbyEnabled,
138
         _lobbyEnabled: state['features/lobby'].lobbyEnabled,
138
         _visible: conference && conference.isLobbySupported() && isLocalParticipantModerator(state)
139
         _visible: conference && conference.isLobbySupported() && isLocalParticipantModerator(state)
140
+            && !hideLobbyButton
139
     };
141
     };
140
 }
142
 }
141
 
143
 

正在加载...
取消
保存