Procházet zdrojové kódy

feat(settings) add abilty to hide more tab under settings

factor2
Mahdhi Rezvi před 3 roky
rodič
revize
8f1fae79e4
Žádný účet není propojen s e-mailovou adresou tvůrce revize

+ 1
- 1
interface_config.js Zobrazit soubor

@@ -144,7 +144,7 @@ var interfaceConfig = {
144 144
     RECENT_LIST_ENABLED: true,
145 145
     REMOTE_THUMBNAIL_RATIO: 1, // 1:1
146 146
 
147
-    SETTINGS_SECTIONS: [ 'devices', 'language', 'moderator', 'profile', 'calendar', 'sounds' ],
147
+    SETTINGS_SECTIONS: [ 'devices', 'language', 'moderator', 'profile', 'calendar', 'sounds', 'more' ],
148 148
 
149 149
     /**
150 150
      * Specify which sharing features should be displayed. If the value is not set

+ 2
- 1
react/features/settings/components/web/SettingsDialog.js Zobrazit soubor

@@ -268,7 +268,8 @@ function _mapStateToProps(state, ownProps) {
268 268
     const moderatorTabProps = getModeratorTabProps(state);
269 269
     const { showModeratorSettings } = moderatorTabProps;
270 270
     const { showLanguageSettings, showNotificationsSettings, showPrejoinSettings } = moreTabProps;
271
-    const showMoreTab = showLanguageSettings || showNotificationsSettings || showPrejoinSettings;
271
+    const showMoreTab
272
+        = configuredTabs.includes('more') && (showLanguageSettings || showNotificationsSettings || showPrejoinSettings);
272 273
     const showProfileSettings
273 274
         = configuredTabs.includes('profile') && !state['features/base/config'].disableProfile;
274 275
     const showCalendarSettings

Načítá se…
Zrušit
Uložit