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
Этот коммит содержится в:
Harrison Healey
2016-05-26 09:47:41 -04:00
коммит произвёл Joram Wilander
родитель 6fecfcc7ca
Коммит 8a7e1b6dff
8 изменённых файлов: 31 добавлений и 792 удалений

Просмотреть файл

@@ -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')}
/>

Просмотреть файл

@@ -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)}
/>

Просмотреть файл

@@ -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')}
/>

Просмотреть файл

@@ -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')}
/>