summaryrefslogtreecommitdiffstats
path: root/web/react/components/admin_console/privacy_settings.jsx
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-01 13:02:04 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-01 13:02:04 -0700
commit9d688821aa8bb8d766793aeaec6920f9985a30a3 (patch)
tree9431e56bb28f3ca580175cba4dd7ed687952158d /web/react/components/admin_console/privacy_settings.jsx
parente0c3d74146ffa608aa83a5e44e52976b9a7f56d2 (diff)
downloadchat-9d688821aa8bb8d766793aeaec6920f9985a30a3.tar.gz
chat-9d688821aa8bb8d766793aeaec6920f9985a30a3.tar.bz2
chat-9d688821aa8bb8d766793aeaec6920f9985a30a3.zip
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.jsx34
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