summaryrefslogtreecommitdiffstats
path: root/webapp/components/user_settings
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-05-26 09:47:41 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-05-26 09:47:41 -0400
commit8a7e1b6dff9e0a7a01ed06870c5a8520500d20af (patch)
tree36af6ce50fdb703436621dfd6764f7f8a39eeba6 /webapp/components/user_settings
parent6fecfcc7ca9f7cf29b4cf87ebeb63b09df70a8c7 (diff)
downloadchat-8a7e1b6dff9e0a7a01ed06870c5a8520500d20af.tar.gz
chat-8a7e1b6dff9e0a7a01ed06870c5a8520500d20af.tar.bz2
chat-8a7e1b6dff9e0a7a01ed06870c5a8520500d20af.zip
PLT-2886 Added name properties to all radio buttons (#3112)
* Removed unused, deprecated system console page * Added name properties to all radio buttons * Removed unused english strings from admin console
Diffstat (limited to 'webapp/components/user_settings')
-rw-r--r--webapp/components/user_settings/user_settings_advanced.jsx2
-rw-r--r--webapp/components/user_settings/user_settings_display.jsx9
-rw-r--r--webapp/components/user_settings/user_settings_notifications.jsx10
-rw-r--r--webapp/components/user_settings/user_settings_theme.jsx2
4 files changed, 23 insertions, 0 deletions
diff --git a/webapp/components/user_settings/user_settings_advanced.jsx b/webapp/components/user_settings/user_settings_advanced.jsx
index 61e0e1dad..dc5bd1c0e 100644
--- a/webapp/components/user_settings/user_settings_advanced.jsx
+++ b/webapp/components/user_settings/user_settings_advanced.jsx
@@ -173,6 +173,7 @@ class AdvancedSettingsDisplay extends React.Component {
<label>
<input
type='radio'
+ name='sendOnCtrlEnter'
checked={ctrlSendActive[0]}
onChange={this.updateSetting.bind(this, 'send_on_ctrl_enter', 'true')}
/>
@@ -187,6 +188,7 @@ class AdvancedSettingsDisplay extends React.Component {
<label>
<input
type='radio'
+ name='sendOnCtrlEnter'
checked={ctrlSendActive[1]}
onChange={this.updateSetting.bind(this, 'send_on_ctrl_enter', 'false')}
/>
diff --git a/webapp/components/user_settings/user_settings_display.jsx b/webapp/components/user_settings/user_settings_display.jsx
index fa0118d1e..16175d4de 100644
--- a/webapp/components/user_settings/user_settings_display.jsx
+++ b/webapp/components/user_settings/user_settings_display.jsx
@@ -146,6 +146,7 @@ export default class UserSettingsDisplay extends React.Component {
<label>
<input
type='radio'
+ name='clockFormat'
checked={clockFormat[0]}
onChange={this.handleClockRadio.bind(this, 'false')}
/>
@@ -160,6 +161,7 @@ export default class UserSettingsDisplay extends React.Component {
<label>
<input
type='radio'
+ name='clockFormat'
checked={clockFormat[1]}
onChange={this.handleClockRadio.bind(this, 'true')}
/>
@@ -264,6 +266,7 @@ export default class UserSettingsDisplay extends React.Component {
<label>
<input
type='radio'
+ name='nameFormat'
checked={nameFormat[1]}
onChange={this.handleNameRadio.bind(this, 'username')}
/>
@@ -275,6 +278,7 @@ export default class UserSettingsDisplay extends React.Component {
<label>
<input
type='radio'
+ name='nameFormat'
checked={nameFormat[0]}
onChange={this.handleNameRadio.bind(this, 'nickname_full_name')}
/>
@@ -286,6 +290,7 @@ export default class UserSettingsDisplay extends React.Component {
<label>
<input
type='radio'
+ name='nameFormat'
checked={nameFormat[2]}
onChange={this.handleNameRadio.bind(this, 'full_name')}
/>
@@ -375,6 +380,7 @@ export default class UserSettingsDisplay extends React.Component {
<label>
<input
type='radio'
+ name='messageDisplay'
checked={messageDisplay[0]}
onChange={this.handlemessageDisplayRadio.bind(this, Preferences.MESSAGE_DISPLAY_CLEAN)}
/>
@@ -389,6 +395,7 @@ export default class UserSettingsDisplay extends React.Component {
<label>
<input
type='radio'
+ name='messageDisplay'
checked={messageDisplay[1]}
onChange={this.handlemessageDisplayRadio.bind(this, Preferences.MESSAGE_DISPLAY_COMPACT)}
/>
@@ -474,6 +481,7 @@ export default class UserSettingsDisplay extends React.Component {
<label>
<input
type='radio'
+ name='channelDisplayMode'
checked={channelDisplayMode[0]}
onChange={this.handleChannelDisplayModeRadio.bind(this, Preferences.CHANNEL_DISPLAY_MODE_CENTERED)}
/>
@@ -488,6 +496,7 @@ export default class UserSettingsDisplay extends React.Component {
<label>
<input
type='radio'
+ name='channelDisplayMode'
checked={channelDisplayMode[1]}
onChange={this.handleChannelDisplayModeRadio.bind(this, Preferences.CHANNEL_DISPLAY_MODE_FULL_SCREEN)}
/>
diff --git a/webapp/components/user_settings/user_settings_notifications.jsx b/webapp/components/user_settings/user_settings_notifications.jsx
index 9d60f27fa..410ce1a4e 100644
--- a/webapp/components/user_settings/user_settings_notifications.jsx
+++ b/webapp/components/user_settings/user_settings_notifications.jsx
@@ -270,6 +270,7 @@ class NotificationsTab extends React.Component {
<label>
<input
type='radio'
+ name='pushNotificationLevel'
checked={notifyActive[0]}
onChange={this.handlePushRadio.bind(this, 'all')}
/>
@@ -284,6 +285,7 @@ class NotificationsTab extends React.Component {
<label>
<input
type='radio'
+ name='pushNotificationLevel'
checked={notifyActive[1]}
onChange={this.handlePushRadio.bind(this, 'mention')}
/>
@@ -298,6 +300,7 @@ class NotificationsTab extends React.Component {
<label>
<input
type='radio'
+ name='pushNotificationLevel'
checked={notifyActive[2]}
onChange={this.handlePushRadio.bind(this, 'none')}
/>
@@ -393,6 +396,7 @@ class NotificationsTab extends React.Component {
<label>
<input
type='radio'
+ name='desktopNotificationLevel'
checked={notifyActive[0]}
onChange={this.handleNotifyRadio.bind(this, 'all')}
/>
@@ -407,6 +411,7 @@ class NotificationsTab extends React.Component {
<label>
<input
type='radio'
+ name='desktopNotificationLevel'
checked={notifyActive[1]}
onChange={this.handleNotifyRadio.bind(this, 'mention')}
/>
@@ -421,6 +426,7 @@ class NotificationsTab extends React.Component {
<label>
<input
type='radio'
+ name='desktopNotificationLevel'
checked={notifyActive[2]}
onChange={this.handleNotifyRadio.bind(this, 'none')}
/>
@@ -508,6 +514,7 @@ class NotificationsTab extends React.Component {
<label>
<input
type='radio'
+ name='notificationSounds'
checked={soundActive[0]}
onChange={this.handleSoundRadio.bind(this, 'true')}
/>
@@ -522,6 +529,7 @@ class NotificationsTab extends React.Component {
<label>
<input
type='radio'
+ name='notificationSounds'
checked={soundActive[1]}
onChange={this.handleSoundRadio.bind(this, 'false')}
/>
@@ -611,6 +619,7 @@ class NotificationsTab extends React.Component {
<label>
<input
type='radio'
+ name='emailNotifications'
checked={emailActive[0]}
onChange={this.handleEmailRadio.bind(this, 'true')}
/>
@@ -625,6 +634,7 @@ class NotificationsTab extends React.Component {
<label>
<input
type='radio'
+ name='emailNotifications'
checked={emailActive[1]}
onChange={this.handleEmailRadio.bind(this, 'false')}
/>
diff --git a/webapp/components/user_settings/user_settings_theme.jsx b/webapp/components/user_settings/user_settings_theme.jsx
index 389fde004..811f4d8e4 100644
--- a/webapp/components/user_settings/user_settings_theme.jsx
+++ b/webapp/components/user_settings/user_settings_theme.jsx
@@ -214,6 +214,7 @@ export default class ThemeSetting extends React.Component {
<label>
<input
type='radio'
+ name='theme'
checked={!displayCustom}
onChange={this.updateType.bind(this, 'premade')}
/>
@@ -236,6 +237,7 @@ export default class ThemeSetting extends React.Component {
<label>
<input
type='radio'
+ name='theme'
checked={displayCustom}
onChange={this.updateType.bind(this, 'custom')}
/>