From 3241c7a9296c0431f0ae4ae03037ca695c61b4e2 Mon Sep 17 00:00:00 2001 From: Radium Zheng Date: Tue, 10 Jul 2018 00:14:29 +1000 Subject: [PATCH] guard LocalRecordingButton with _shouldShowButton --- interface_config.js | 3 ++- react/features/toolbox/components/web/Toolbox.js | 13 ++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/interface_config.js b/interface_config.js index b9d17b1c5..c4bcb9e5e 100644 --- a/interface_config.js +++ b/interface_config.js @@ -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' ], diff --git a/react/features/toolbox/components/web/Toolbox.js b/react/features/toolbox/components/web/Toolbox.js index 2225a8711..244236444 100644 --- a/react/features/toolbox/components/web/Toolbox.js +++ b/react/features/toolbox/components/web/Toolbox.js @@ -381,11 +381,14 @@ class Toolbox extends Component { visible = { this._shouldShowButton('camera') } />
- + { this._shouldShowButton('localrecording') + && + } { this._shouldShowButton('invite') && !_hideInviteButton &&