Browse Source

fix: still show menu to toggle self view if disableLocalVideoFlip (#10751)

* fix: still show menu to toggle self view if disableLocalVideoFlip

* fixed lint issues
master
Shawn Chin 3 years ago
parent
commit
97fbfd21af
No account linked to committer's email address

+ 6
- 4
react/features/video-menu/components/web/LocalVideoMenuTriggerButton.js View File

173
                     hidden = { false }
173
                     hidden = { false }
174
                     inDrawer = { _overflowDrawer }>
174
                     inDrawer = { _overflowDrawer }>
175
                     <ContextMenuItemGroup>
175
                     <ContextMenuItemGroup>
176
-                        <FlipLocalVideoButton
177
-                            className = { _overflowDrawer ? classes.flipText : '' }
178
-                            onClick = { hidePopover } />
176
+                        { _showLocalVideoFlipButton
177
+                            && <FlipLocalVideoButton
178
+                                className = { _overflowDrawer ? classes.flipText : '' }
179
+                                onClick = { hidePopover } />
180
+                        }
179
                         { _showHideSelfViewButton
181
                         { _showHideSelfViewButton
180
                             && <HideSelfViewVideoButton
182
                             && <HideSelfViewVideoButton
181
                                 className = { _overflowDrawer ? classes.flipText : '' }
183
                                 className = { _overflowDrawer ? classes.flipText : '' }
189
             );
191
             );
190
 
192
 
191
         return (
193
         return (
192
-            isMobileBrowser() || _showLocalVideoFlipButton
194
+            isMobileBrowser() || _showLocalVideoFlipButton || _showHideSelfViewButton
193
                 ? <Popover
195
                 ? <Popover
194
                     content = { content }
196
                     content = { content }
195
                     id = 'local-video-menu-trigger'
197
                     id = 'local-video-menu-trigger'

Loading…
Cancel
Save