mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-19 20:47:49 +00:00
Make web use the redux settings/profile
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
ab7e572162
commit
959db3a665
@@ -120,7 +120,7 @@ class SettingsView extends AbstractSettingsView {
|
||||
* @returns {void}
|
||||
*/
|
||||
_processServerURL(hideOnSuccess: boolean) {
|
||||
const { serverURL } = this.props._profile;
|
||||
const { serverURL } = this.props._settings;
|
||||
const normalizedURL = normalizeUserInputURL(serverURL);
|
||||
|
||||
if (normalizedURL === null) {
|
||||
@@ -140,7 +140,7 @@ class SettingsView extends AbstractSettingsView {
|
||||
* @returns {React$Element}
|
||||
*/
|
||||
_renderBody() {
|
||||
const { _profile } = this.props;
|
||||
const { _settings } = this.props;
|
||||
|
||||
return (
|
||||
<SafeAreaView style = { styles.settingsForm }>
|
||||
@@ -154,7 +154,7 @@ class SettingsView extends AbstractSettingsView {
|
||||
autoCorrect = { false }
|
||||
onChangeText = { this._onChangeDisplayName }
|
||||
placeholder = 'John Doe'
|
||||
value = { _profile.displayName } />
|
||||
value = { _settings.displayName } />
|
||||
</FormRow>
|
||||
<FormRow i18nLabel = 'settingsView.email'>
|
||||
<TextInput
|
||||
@@ -163,7 +163,7 @@ class SettingsView extends AbstractSettingsView {
|
||||
keyboardType = { 'email-address' }
|
||||
onChangeText = { this._onChangeEmail }
|
||||
placeholder = 'email@example.com'
|
||||
value = { _profile.email } />
|
||||
value = { _settings.email } />
|
||||
</FormRow>
|
||||
<FormSectionHeader
|
||||
i18nLabel = 'settingsView.conferenceSection' />
|
||||
@@ -176,19 +176,19 @@ class SettingsView extends AbstractSettingsView {
|
||||
onBlur = { this._onBlurServerURL }
|
||||
onChangeText = { this._onChangeServerURL }
|
||||
placeholder = { this.props._serverURL }
|
||||
value = { _profile.serverURL } />
|
||||
value = { _settings.serverURL } />
|
||||
</FormRow>
|
||||
<FormRow
|
||||
fieldSeparator = { true }
|
||||
i18nLabel = 'settingsView.startWithAudioMuted'>
|
||||
<Switch
|
||||
onValueChange = { this._onStartAudioMutedChange }
|
||||
value = { _profile.startWithAudioMuted } />
|
||||
value = { _settings.startWithAudioMuted } />
|
||||
</FormRow>
|
||||
<FormRow i18nLabel = 'settingsView.startWithVideoMuted'>
|
||||
<Switch
|
||||
onValueChange = { this._onStartVideoMutedChange }
|
||||
value = { _profile.startWithVideoMuted } />
|
||||
value = { _settings.startWithVideoMuted } />
|
||||
</FormRow>
|
||||
</ScrollView>
|
||||
</SafeAreaView>
|
||||
|
||||
Reference in New Issue
Block a user