guard LocalRecordingButton with _shouldShowButton

This commit is contained in:
Radium Zheng 2018-07-10 00:14:29 +10:00
parent 55a2ef30a0
commit 3241c7a929
2 changed files with 10 additions and 6 deletions

View File

@ -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' ],

View File

@ -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