From 8f1fae79e45df34d76c42c85c2d97e732f0c1ac7 Mon Sep 17 00:00:00 2001 From: Mahdhi Rezvi <37553533+Mahdhir@users.noreply.github.com> Date: Thu, 23 Jun 2022 18:14:26 +0530 Subject: [PATCH] feat(settings) add abilty to hide more tab under settings --- interface_config.js | 2 +- react/features/settings/components/web/SettingsDialog.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/interface_config.js b/interface_config.js index cf97296e57..3a9a4fd0fd 100644 --- a/interface_config.js +++ b/interface_config.js @@ -144,7 +144,7 @@ var interfaceConfig = { RECENT_LIST_ENABLED: true, REMOTE_THUMBNAIL_RATIO: 1, // 1:1 - SETTINGS_SECTIONS: [ 'devices', 'language', 'moderator', 'profile', 'calendar', 'sounds' ], + SETTINGS_SECTIONS: [ 'devices', 'language', 'moderator', 'profile', 'calendar', 'sounds', 'more' ], /** * Specify which sharing features should be displayed. If the value is not set diff --git a/react/features/settings/components/web/SettingsDialog.js b/react/features/settings/components/web/SettingsDialog.js index 6dd8b72483..f10d28b7e9 100644 --- a/react/features/settings/components/web/SettingsDialog.js +++ b/react/features/settings/components/web/SettingsDialog.js @@ -268,7 +268,8 @@ function _mapStateToProps(state, ownProps) { const moderatorTabProps = getModeratorTabProps(state); const { showModeratorSettings } = moderatorTabProps; const { showLanguageSettings, showNotificationsSettings, showPrejoinSettings } = moreTabProps; - const showMoreTab = showLanguageSettings || showNotificationsSettings || showPrejoinSettings; + const showMoreTab + = configuredTabs.includes('more') && (showLanguageSettings || showNotificationsSettings || showPrejoinSettings); const showProfileSettings = configuredTabs.includes('profile') && !state['features/base/config'].disableProfile; const showCalendarSettings