浏览代码

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

factor2
Mahdhi Rezvi 3 年前
父节点
当前提交
8f1fae79e4
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1
    1
      interface_config.js
  2. 2
    1
      react/features/settings/components/web/SettingsDialog.js

+ 1
- 1
interface_config.js 查看文件

144
     RECENT_LIST_ENABLED: true,
144
     RECENT_LIST_ENABLED: true,
145
     REMOTE_THUMBNAIL_RATIO: 1, // 1:1
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
      * Specify which sharing features should be displayed. If the value is not set
150
      * Specify which sharing features should be displayed. If the value is not set

+ 2
- 1
react/features/settings/components/web/SettingsDialog.js 查看文件

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

正在加载...
取消
保存