mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat(settings) add abilty to hide more tab under settings
This commit is contained in:
@@ -144,7 +144,7 @@ var interfaceConfig = {
|
|||||||
RECENT_LIST_ENABLED: true,
|
RECENT_LIST_ENABLED: true,
|
||||||
REMOTE_THUMBNAIL_RATIO: 1, // 1:1
|
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
|
* Specify which sharing features should be displayed. If the value is not set
|
||||||
|
|||||||
@@ -268,7 +268,8 @@ function _mapStateToProps(state, ownProps) {
|
|||||||
const moderatorTabProps = getModeratorTabProps(state);
|
const moderatorTabProps = getModeratorTabProps(state);
|
||||||
const { showModeratorSettings } = moderatorTabProps;
|
const { showModeratorSettings } = moderatorTabProps;
|
||||||
const { showLanguageSettings, showNotificationsSettings, showPrejoinSettings } = moreTabProps;
|
const { showLanguageSettings, showNotificationsSettings, showPrejoinSettings } = moreTabProps;
|
||||||
const showMoreTab = showLanguageSettings || showNotificationsSettings || showPrejoinSettings;
|
const showMoreTab
|
||||||
|
= configuredTabs.includes('more') && (showLanguageSettings || showNotificationsSettings || showPrejoinSettings);
|
||||||
const showProfileSettings
|
const showProfileSettings
|
||||||
= configuredTabs.includes('profile') && !state['features/base/config'].disableProfile;
|
= configuredTabs.includes('profile') && !state['features/base/config'].disableProfile;
|
||||||
const showCalendarSettings
|
const showCalendarSettings
|
||||||
|
|||||||
Reference in New Issue
Block a user