Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d1d4396

Browse files
committed
settings: reorganize VoiseUserSettingsTab
This is a preparation step for adding new advanced voice processing options to this settings tab. 3 additional sections have been added: Voice, Video, and Advanced Signed-off-by: László Várady <[email protected]>
1 parent 527da1c commit d1d4396

File tree

4 files changed

+31
-11
lines changed

4 files changed

+31
-11
lines changed

src/components/views/settings/tabs/user/VoiceUserSettingsTab.tsx

+22-11
Original file line numberDiff line numberDiff line change
@@ -183,22 +183,33 @@ export default class VoiceUserSettingsTab extends React.Component<{}, IState> {
183183
return (
184184
<div className="mx_SettingsTab mx_VoiceUserSettingsTab">
185185
<div className="mx_SettingsTab_heading">{ _t("Voice & Video") }</div>
186+
{ requestButton }
186187
<div className="mx_SettingsTab_section">
187-
{ requestButton }
188+
<span className="mx_SettingsTab_subheading">{ _t("Voice settings") }</span>
188189
{ speakerDropdown }
189190
{ microphoneDropdown }
191+
</div>
192+
<div className="mx_SettingsTab_section">
193+
<span className="mx_SettingsTab_subheading">{ _t("Video settings") }</span>
190194
{ webcamDropdown }
191195
<SettingsFlag name='VideoView.flipVideoHorizontally' level={SettingLevel.ACCOUNT} />
192-
<SettingsFlag
193-
name='webRtcAllowPeerToPeer'
194-
level={SettingLevel.DEVICE}
195-
onChange={this.changeWebRtcMethod}
196-
/>
197-
<SettingsFlag
198-
name='fallbackICEServerAllowed'
199-
level={SettingLevel.DEVICE}
200-
onChange={this.changeFallbackICEServerAllowed}
201-
/>
196+
</div>
197+
198+
<div className="mx_SettingsTab_heading">{ _t("Advanced") }</div>
199+
<div className="mx_SettingsTab_section">
200+
<div className="mx_SettingsTab_section">
201+
<span className="mx_SettingsTab_subheading">{ _t("Connection") }</span>
202+
<SettingsFlag
203+
name='webRtcAllowPeerToPeer'
204+
level={SettingLevel.DEVICE}
205+
onChange={this.changeWebRtcMethod}
206+
/>
207+
<SettingsFlag
208+
name='fallbackICEServerAllowed'
209+
level={SettingLevel.DEVICE}
210+
onChange={this.changeFallbackICEServerAllowed}
211+
/>
212+
</div>
202213
</div>
203214
</div>
204215
);

src/i18n/strings/en_EN.json

+3
Original file line numberDiff line numberDiff line change
@@ -1550,6 +1550,9 @@
15501550
"Camera": "Camera",
15511551
"No Webcams detected": "No Webcams detected",
15521552
"Voice & Video": "Voice & Video",
1553+
"Voice settings": "Voice settings",
1554+
"Video settings": "Video settings",
1555+
"Connection": "Connection",
15531556
"This room is not accessible by remote Matrix servers": "This room is not accessible by remote Matrix servers",
15541557
"<b>Warning</b>: Upgrading a room will <i>not automatically migrate room members to the new version of the room.</i> We'll post a link to the new room in the old version of the room - room members will have to click this link to join the new room.": "<b>Warning</b>: Upgrading a room will <i>not automatically migrate room members to the new version of the room.</i> We'll post a link to the new room in the old version of the room - room members will have to click this link to join the new room.",
15551558
"Upgrade this space to the recommended room version": "Upgrade this space to the recommended room version",

src/i18n/strings/en_US.json

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"Microphone": "Microphone",
1212
"Camera": "Camera",
1313
"Advanced": "Advanced",
14+
"Voice settings": "Voice settings",
15+
"Video settings": "Video settings",
16+
"Connection": "Connection",
1417
"Always show message timestamps": "Always show message timestamps",
1518
"Authentication": "Authentication",
1619
"%(items)s and %(lastItem)s": "%(items)s and %(lastItem)s",

src/i18n/strings/hu.json

+3
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,9 @@
704704
"Missing media permissions, click the button below to request.": "Hiányzó média jogosultságok, kattints a gombra alul a jogok megadásához.",
705705
"Request media permissions": "Média jogosultságok megkérése",
706706
"Voice & Video": "Hang és videó",
707+
"Voice settings": "Hangbeállítások",
708+
"Video settings": "Videóbeállítások",
709+
"Connection": "Kapcsolat",
707710
"Main address": "Fő cím",
708711
"Room avatar": "Szoba képe",
709712
"Room Name": "Szoba neve",

0 commit comments

Comments
 (0)