Quellcode durchsuchen

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é vor 5 Jahren
Ursprung
Commit
bde2343951
1 geänderte Dateien mit 13 neuen und 2 gelöschten Zeilen
  1. 13
    2
      react/features/filmstrip/components/web/Filmstrip.js

+ 13
- 2
react/features/filmstrip/components/web/Filmstrip.js Datei anzeigen

@@ -58,6 +58,11 @@ type Props = {
58 58
      */
59 59
     _hideScrollbar: boolean,
60 60
 
61
+    /**
62
+     * Whether the filmstrip toolbar should be hidden or not.
63
+     */
64
+    _hideToolbar: boolean,
65
+
61 66
     /**
62 67
      * Whether or not remote videos are currently being hovered over. Hover
63 68
      * handling is currently being handled detected outside of react.
@@ -195,12 +200,17 @@ class Filmstrip extends Component <Props> {
195 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 209
         return (
199 210
             <div
200 211
                 className = { `filmstrip ${this.props._className}` }
201 212
                 style = { filmstripStyle }>
202
-                { this.props._filmstripOnly
203
-                    ? <Toolbar /> : this._renderToggleButton() }
213
+                { toolbar }
204 214
                 <div
205 215
                     className = { this.props._videosClassName }
206 216
                     id = 'remoteVideos'>
@@ -369,6 +379,7 @@ function _mapStateToProps(state) {
369 379
         _filmstripOnly: isFilmstripOnly,
370 380
         _filmstripWidth: filmstripWidth,
371 381
         _hideScrollbar: Boolean(iAmSipGateway),
382
+        _hideToolbar: Boolean(iAmSipGateway),
372 383
         _hovered: hovered,
373 384
         _rows: gridDimensions.rows,
374 385
         _videosClassName: videosClassName,

Laden…
Abbrechen
Speichern