diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2015-10-05 09:27:24 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2015-10-05 09:27:24 -0400 |
commit | b144ac103607bb716f7ea340b28498b47b77af9f (patch) | |
tree | 816473caffb28b57a41c4b4f1ba246d30c61659b /web/react/components/admin_console/privacy_settings.jsx | |
parent | 44ceedc2ad2ea193cedb71865931dcdc1624ed2b (diff) | |
parent | e0743a6a2bee391efafa2b5c5c0fa3e8a3d2ee27 (diff) | |
download | chat-b144ac103607bb716f7ea340b28498b47b77af9f.tar.gz chat-b144ac103607bb716f7ea340b28498b47b77af9f.tar.bz2 chat-b144ac103607bb716f7ea340b28498b47b77af9f.zip |
Merge pull request #900 from mattermost/PLT-462
PLT-462 Adding diagnostic info
Diffstat (limited to 'web/react/components/admin_console/privacy_settings.jsx')
-rw-r--r-- | web/react/components/admin_console/privacy_settings.jsx | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/web/react/components/admin_console/privacy_settings.jsx b/web/react/components/admin_console/privacy_settings.jsx index affd8ae11..c74d321e6 100644 --- a/web/react/components/admin_console/privacy_settings.jsx +++ b/web/react/components/admin_console/privacy_settings.jsx @@ -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, @@ -137,6 +138,39 @@ export default class PrivacySettings extends React.Component { </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} <button |