guard LocalRecordingButton with _shouldShowButton
This commit is contained in:
parent
55a2ef30a0
commit
3241c7a929
|
@ -48,7 +48,8 @@ var interfaceConfig = {
|
|||
'microphone', 'camera', 'closedcaptions', 'desktop', 'fullscreen',
|
||||
'fodeviceselection', 'hangup', 'profile', 'info', 'chat', 'recording',
|
||||
'livestreaming', 'etherpad', 'sharedvideo', 'settings', 'raisehand',
|
||||
'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts'
|
||||
'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts',
|
||||
'localrecording'
|
||||
],
|
||||
|
||||
SETTINGS_SECTIONS: [ 'devices', 'language', 'moderator', 'profile' ],
|
||||
|
|
|
@ -381,11 +381,14 @@ class Toolbox extends Component<Props> {
|
|||
visible = { this._shouldShowButton('camera') } />
|
||||
</div>
|
||||
<div className = 'button-group-right'>
|
||||
<LocalRecordingButton
|
||||
isDialogShown = { this.props._localRecState.showDialog }
|
||||
{ this._shouldShowButton('localrecording')
|
||||
&& <LocalRecordingButton
|
||||
isDialogShown =
|
||||
{ this.props._localRecState.showDialog }
|
||||
onClick = {
|
||||
this._onToolbarToggleLocalRecordingInfoDialog
|
||||
} />
|
||||
}
|
||||
{ this._shouldShowButton('invite')
|
||||
&& !_hideInviteButton
|
||||
&& <ToolbarButton
|
||||
|
|
Loading…
Reference in New Issue