Kaynağa Gözat

guard LocalRecordingButton with _shouldShowButton

master
Radium Zheng 7 yıl önce
ebeveyn
işleme
3241c7a929

+ 2
- 1
interface_config.js Dosyayı Görüntüle

@@ -48,7 +48,8 @@ var interfaceConfig = {
48 48
         'microphone', 'camera', 'closedcaptions', 'desktop', 'fullscreen',
49 49
         'fodeviceselection', 'hangup', 'profile', 'info', 'chat', 'recording',
50 50
         'livestreaming', 'etherpad', 'sharedvideo', 'settings', 'raisehand',
51
-        'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts'
51
+        'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts',
52
+        'localrecording'
52 53
     ],
53 54
 
54 55
     SETTINGS_SECTIONS: [ 'devices', 'language', 'moderator', 'profile' ],

+ 8
- 5
react/features/toolbox/components/web/Toolbox.js Dosyayı Görüntüle

@@ -381,11 +381,14 @@ class Toolbox extends Component<Props> {
381 381
                         visible = { this._shouldShowButton('camera') } />
382 382
                 </div>
383 383
                 <div className = 'button-group-right'>
384
-                    <LocalRecordingButton
385
-                        isDialogShown = { this.props._localRecState.showDialog }
386
-                        onClick = {
387
-                            this._onToolbarToggleLocalRecordingInfoDialog
388
-                        } />
384
+                    { this._shouldShowButton('localrecording')
385
+                        && <LocalRecordingButton
386
+                            isDialogShown =
387
+                                { this.props._localRecState.showDialog }
388
+                            onClick = {
389
+                                this._onToolbarToggleLocalRecordingInfoDialog
390
+                            } />
391
+                    }
389 392
                     { this._shouldShowButton('invite')
390 393
                         && !_hideInviteButton
391 394
                         && <ToolbarButton

Loading…
İptal
Kaydet