From ff2626723a42dc3ba36a37d994055bcae52c0dac Mon Sep 17 00:00:00 2001 From: Hristo Terezov Date: Wed, 16 Oct 2019 19:36:39 +0100 Subject: [PATCH] fix(HelpButton): Improvements. --- config.js | 15 +++++++-------- interface_config.js | 2 +- react/features/toolbox/components/HelpButton.js | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/config.js b/config.js index 195444978..33f70d04d 100644 --- a/config.js +++ b/config.js @@ -419,15 +419,14 @@ var config = { // the menu has option to flip the locally seen video for local presentations // disableLocalVideoFlip: false - // If specified a 'Help' button will be displayed in the overflow menu with a link to the specified URL for - // user documentation. - // userDocumentationURL: 'https://docs.example.com/video-meetings.html' - - // URLs meant to be opened in different windows. + // Deployment specific URLs. // deploymentUrls: { - // // If specified a 'Download our apps' button will be displayed in the overflow menu with a link - // // to the specified URL for an app download page. - // downloadAppsUrl: 'https://docs.example.com/our-apps.html' + // // If specified a 'Help' button will be displayed in the overflow menu with a link to the specified URL for + // // user documentation. + // userDocumentationURL: 'https://docs.example.com/video-meetings.html', + // // If specified a 'Download our apps' button will be displayed in the overflow menu with a link + // // to the specified URL for an app download page. + // downloadAppsUrl: 'https://docs.example.com/our-apps.html' // } // List of undocumented settings used in jitsi-meet diff --git a/interface_config.js b/interface_config.js index 99faf8cee..9620e763e 100644 --- a/interface_config.js +++ b/interface_config.js @@ -51,7 +51,7 @@ var interfaceConfig = { 'fodeviceselection', 'hangup', 'profile', 'info', 'chat', 'recording', 'livestreaming', 'etherpad', 'sharedvideo', 'settings', 'raisehand', 'videoquality', 'filmstrip', 'invite', 'feedback', 'stats', 'shortcuts', - 'tileview', 'videobackgroundblur', 'download' + 'tileview', 'videobackgroundblur', 'download', 'help' ], SETTINGS_SECTIONS: [ 'devices', 'language', 'moderator', 'profile', 'calendar' ], diff --git a/react/features/toolbox/components/HelpButton.js b/react/features/toolbox/components/HelpButton.js index 7352e724d..cf42dbdc2 100644 --- a/react/features/toolbox/components/HelpButton.js +++ b/react/features/toolbox/components/HelpButton.js @@ -44,7 +44,7 @@ class HelpButton extends AbstractButton { * @returns {Object} */ function _mapStateToProps(state: Object) { - const { userDocumentationURL } = state['features/base/config']; + const { userDocumentationURL } = state['features/base/config'].deploymentUrls || {}; const visible = typeof userDocumentationURL === 'string'; return {