PLT-462 Adding diagnostic info

Этот коммит содержится в:
=Corey Hulen
2015-10-01 13:02:04 -07:00
родитель e0c3d74146
Коммит 9d688821aa
7 изменённых файлов: 137 добавлений и 3 удалений

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

@@ -30,6 +30,7 @@ export default class PrivacySettings extends React.Component {
var config = this.props.config;
config.PrivacySettings.ShowEmailAddress = React.findDOMNode(this.refs.ShowEmailAddress).checked;
config.PrivacySettings.ShowFullName = React.findDOMNode(this.refs.ShowFullName).checked;
config.PrivacySettings.EnableDiagnostic = React.findDOMNode(this.refs.EnableDiagnostic).checked;
Client.saveConfig(
config,
@@ -136,6 +137,39 @@ export default class PrivacySettings extends React.Component {
</div>
</div>
<div className='form-group'>
<label
className='control-label col-sm-4'
htmlFor='EnableDiagnostic'
>
{'Send Error and Diagnostic: '}
</label>
<div className='col-sm-8'>
<label className='radio-inline'>
<input
type='radio'
name='EnableDiagnostic'
value='true'
ref='EnableDiagnostic'
defaultChecked={this.props.config.PrivacySettings.EnableDiagnostic}
onChange={this.handleChange}
/>
{'true'}
</label>
<label className='radio-inline'>
<input
type='radio'
name='EnableDiagnostic'
value='false'
defaultChecked={!this.props.config.PrivacySettings.EnableDiagnostic}
onChange={this.handleChange}
/>
{'false'}
</label>
<p className='help-text'>{'When true, The server will periodically send error and diagnostic information to Mattermost.'}</p>
</div>
</div>
<div className='form-group'>
<div className='col-sm-12'>
{serverError}