Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(profile-settings): Hide email field under profile settings
Horatiu Muresan70d8a46c059d
diff --git a/config.js b/config.jsindex eb3063691f..4a738548cb 100644--- a/config.js+++ b/config.js@@ -484,6 +484,9 @@ var config = {// Disables profile and the edit of all fields from the profile settings (display name and email)// disableProfile: false,+ // Hides the email section under profile settings.+ // hideEmailInSettings: false,+// Whether or not some features are checked based on token.// enableFeaturesBasedOnToken: false,diff --git a/css/modals/settings/_settings.scss b/css/modals/settings/_settings.scssindex 078e33dbec..b46ebcd2d8 100644--- a/css/modals/settings/_settings.scss+++ b/css/modals/settings/_settings.scss@@ -48,7 +48,7 @@}.profile-edit-field {- flex: 1;+ flex: .5;}.settings-sub-pane {flex: 1;diff --git a/react/features/base/config/configWhitelist.js b/react/features/base/config/configWhitelist.jsindex d5604c127d..cd16a86a5e 100644--- a/react/features/base/config/configWhitelist.js+++ b/react/features/base/config/configWhitelist.js@@ -165,6 +165,7 @@ export default ['hideConferenceTimer','hiddenDomain','hideAddRoomButton',+ 'hideEmailInSettings','hideLobbyButton','hosts','iAmRecorder',diff --git a/react/features/settings/components/web/ProfileTab.js b/react/features/settings/components/web/ProfileTab.jsindex c7645dbf7a..36b1476b64 100644--- a/react/features/settings/components/web/ProfileTab.js+++ b/react/features/settings/components/web/ProfileTab.js@@ -53,6 +53,11 @@ export type Props = {*/readOnlyName: boolean,+ /**+ * Whether to hide the email input in the profile settings.+ */+ hideEmailInSettings?: boolean,+/*** Invoked to obtain translated strings.*/@@ -137,6 +142,7 @@ class ProfileTab extends AbstractDialogTab<Props> {displayName,disableSelfView,email,+ hideEmailInSettings,readOnlyName,t} = this.props;@@ -157,7 +163,7 @@ class ProfileTab extends AbstractDialogTab<Props> {type = 'text'value = { displayName } /></div>- <div className = 'profile-edit-field'>+ {!hideEmailInSettings && <div className = 'profile-edit-field'><FieldTextStatelesscompact = { true }id = 'setEmail'@@ -167,7 +173,7 @@ class ProfileTab extends AbstractDialogTab<Props> {shouldFitContainer = { true }type = 'text'value = { email } />- </div>+ </div>}</div><br /><Checkboxdiff --git a/react/features/settings/functions.js b/react/features/settings/functions.jsindex e2ff6c7af8..495377b6a5 100644--- a/react/features/settings/functions.js+++ b/react/features/settings/functions.js@@ -155,6 +155,7 @@ export function getProfileTabProps(stateful: Object | Function) {authLogin,conference} = state['features/base/conference'];+ const { hideEmailInSettings } = state['features/base/config'];const localParticipant = getLocalParticipant(state);const { disableSelfView } = state['features/base/settings'];@@ -164,7 +165,8 @@ export function getProfileTabProps(stateful: Object | Function) {displayName: localParticipant.name,disableSelfView: Boolean(disableSelfView),email: localParticipant.email,- readOnlyName: isNameReadOnly(state)+ readOnlyName: isNameReadOnly(state),+ hideEmailInSettings};}