瀏覽代碼

filmstrip: don't display toolbar for SIP gateways

Note that in the usual (vertical) setup, the "toolbar" is just the hide button.
master
Saúl Ibarra Corretgé 5 年之前
父節點
當前提交
bde2343951
共有 1 個檔案被更改,包括 13 行新增2 行删除
  1. 13
    2
      react/features/filmstrip/components/web/Filmstrip.js

+ 13
- 2
react/features/filmstrip/components/web/Filmstrip.js 查看文件

58
      */
58
      */
59
     _hideScrollbar: boolean,
59
     _hideScrollbar: boolean,
60
 
60
 
61
+    /**
62
+     * Whether the filmstrip toolbar should be hidden or not.
63
+     */
64
+    _hideToolbar: boolean,
65
+
61
     /**
66
     /**
62
      * Whether or not remote videos are currently being hovered over. Hover
67
      * Whether or not remote videos are currently being hovered over. Hover
63
      * handling is currently being handled detected outside of react.
68
      * handling is currently being handled detected outside of react.
195
             remoteVideosWrapperClassName += ' hide-scrollbar';
200
             remoteVideosWrapperClassName += ' hide-scrollbar';
196
         }
201
         }
197
 
202
 
203
+        let toolbar = null;
204
+
205
+        if (!this.props._hideToolbar) {
206
+            toolbar = this.props._filmstripOnly ? <Toolbar /> : this._renderToggleButton();
207
+        }
208
+
198
         return (
209
         return (
199
             <div
210
             <div
200
                 className = { `filmstrip ${this.props._className}` }
211
                 className = { `filmstrip ${this.props._className}` }
201
                 style = { filmstripStyle }>
212
                 style = { filmstripStyle }>
202
-                { this.props._filmstripOnly
203
-                    ? <Toolbar /> : this._renderToggleButton() }
213
+                { toolbar }
204
                 <div
214
                 <div
205
                     className = { this.props._videosClassName }
215
                     className = { this.props._videosClassName }
206
                     id = 'remoteVideos'>
216
                     id = 'remoteVideos'>
369
         _filmstripOnly: isFilmstripOnly,
379
         _filmstripOnly: isFilmstripOnly,
370
         _filmstripWidth: filmstripWidth,
380
         _filmstripWidth: filmstripWidth,
371
         _hideScrollbar: Boolean(iAmSipGateway),
381
         _hideScrollbar: Boolean(iAmSipGateway),
382
+        _hideToolbar: Boolean(iAmSipGateway),
372
         _hovered: hovered,
383
         _hovered: hovered,
373
         _rows: gridDimensions.rows,
384
         _rows: gridDimensions.rows,
374
         _videosClassName: videosClassName,
385
         _videosClassName: videosClassName,

Loading…
取消
儲存