瀏覽代碼

fix(toolbox): Show dominant speaker name only when in conference

master
Vlad Piersec 4 年之前
父節點
當前提交
56c0edc896

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

238
                         <Filmstrip />
238
                         <Filmstrip />
239
                     </div>
239
                     </div>
240
 
240
 
241
-                    { _showPrejoin || _showLobby || <Toolbox /> }
241
+                    { _showPrejoin || _showLobby || <Toolbox showDominantSpeakerName = { true } /> }
242
                     <Chat />
242
                     <Chat />
243
 
243
 
244
                     { this.renderNotificationsContainer() }
244
                     { this.renderNotificationsContainer() }

+ 10
- 1
react/features/toolbox/components/web/Toolbox.js 查看文件

230
      */
230
      */
231
     dispatch: Function,
231
     dispatch: Function,
232
 
232
 
233
+    /**
234
+     * If the dominant speaker name should be displayed or not.
235
+     */
236
+    showDominantSpeakerName?: boolean,
237
+
233
     /**
238
     /**
234
      * Invoked to obtain translated strings.
239
      * Invoked to obtain translated strings.
235
      */
240
      */
239
      * Explicitly passed array with the buttons which this Toolbox should display.
244
      * Explicitly passed array with the buttons which this Toolbox should display.
240
      */
245
      */
241
     toolbarButtons: Array<string>,
246
     toolbarButtons: Array<string>,
247
+
242
 };
248
 };
243
 
249
 
244
 declare var APP: Object;
250
 declare var APP: Object;
1222
             _isMobile,
1228
             _isMobile,
1223
             _overflowMenuVisible,
1229
             _overflowMenuVisible,
1224
             _toolbarButtons,
1230
             _toolbarButtons,
1231
+            showDominantSpeakerName,
1225
             t,
1232
             t,
1226
             _reactionsEnabled
1233
             _reactionsEnabled
1227
         } = this.props;
1234
         } = this.props;
1240
                         onMouseOut: this._onMouseOut,
1247
                         onMouseOut: this._onMouseOut,
1241
                         onMouseOver: this._onMouseOver
1248
                         onMouseOver: this._onMouseOver
1242
                     }) }>
1249
                     }) }>
1243
-                    <DominantSpeakerName />
1250
+
1251
+                    { showDominantSpeakerName && <DominantSpeakerName /> }
1252
+
1244
                     <div className = 'toolbox-content-items'>
1253
                     <div className = 'toolbox-content-items'>
1245
                         {mainMenuButtons.map(({ Content, key, ...rest }) => Content !== Separator && (
1254
                         {mainMenuButtons.map(({ Content, key, ...rest }) => Content !== Separator && (
1246
                             <Content
1255
                             <Content

Loading…
取消
儲存