summaryrefslogtreecommitdiffstats
path: root/web/react/components/admin_console/team_settings.jsx
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-27 22:18:52 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-27 22:18:52 -0700
commitbb25056d9afca501f147450466aaeecca9fef66f (patch)
tree64f7b9eeb590e2cb0fe13b7a2eb55ddb798b30be /web/react/components/admin_console/team_settings.jsx
parent940f5c29c7c35a66f0b37f62831809e3633a5ea9 (diff)
downloadchat-bb25056d9afca501f147450466aaeecca9fef66f.tar.gz
chat-bb25056d9afca501f147450466aaeecca9fef66f.tar.bz2
chat-bb25056d9afca501f147450466aaeecca9fef66f.zip
PLT-340
Diffstat (limited to 'web/react/components/admin_console/team_settings.jsx')
-rw-r--r--web/react/components/admin_console/team_settings.jsx34
1 files changed, 34 insertions, 0 deletions
diff --git a/web/react/components/admin_console/team_settings.jsx b/web/react/components/admin_console/team_settings.jsx
index 9ecd14a1e..6587184ea 100644
--- a/web/react/components/admin_console/team_settings.jsx
+++ b/web/react/components/admin_console/team_settings.jsx
@@ -32,6 +32,7 @@ export default class TeamSettings extends React.Component {
config.TeamSettings.EnableTeamCreation = ReactDOM.findDOMNode(this.refs.EnableTeamCreation).checked;
config.TeamSettings.EnableUserCreation = ReactDOM.findDOMNode(this.refs.EnableUserCreation).checked;
config.TeamSettings.RestrictTeamNames = ReactDOM.findDOMNode(this.refs.RestrictTeamNames).checked;
+ config.TeamSettings.EnableTeamListing = ReactDOM.findDOMNode(this.refs.EnableTeamListing).checked;
var MaxUsersPerTeam = 50;
if (!isNaN(parseInt(ReactDOM.findDOMNode(this.refs.MaxUsersPerTeam).value, 10))) {
@@ -243,6 +244,39 @@ export default class TeamSettings extends React.Component {
</div>
<div className='form-group'>
+ <label
+ className='control-label col-sm-4'
+ htmlFor='EnableTeamListing'
+ >
+ {'Enable Team Directory: '}
+ </label>
+ <div className='col-sm-8'>
+ <label className='radio-inline'>
+ <input
+ type='radio'
+ name='EnableTeamListing'
+ value='true'
+ ref='EnableTeamListing'
+ defaultChecked={this.props.config.TeamSettings.EnableTeamListing}
+ onChange={this.handleChange}
+ />
+ {'true'}
+ </label>
+ <label className='radio-inline'>
+ <input
+ type='radio'
+ name='EnableTeamListing'
+ value='false'
+ defaultChecked={!this.props.config.TeamSettings.EnableTeamListing}
+ onChange={this.handleChange}
+ />
+ {'false'}
+ </label>
+ <p className='help-text'>{'When true, teams that are configured to show in team directory will show on main page inplace of creating a new team.'}</p>
+ </div>
+ </div>
+
+ <div className='form-group'>
<div className='col-sm-12'>
{serverError}
<button