summaryrefslogtreecommitdiffstats
path: root/web/react/components/team_settings_modal.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-08-21 16:36:53 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-08-24 08:36:55 -0700
commitbf82facd5afd6e2c71845f5732654069554c3a16 (patch)
tree14902e0ea04f079b28210d90f423806b8b2c2dea /web/react/components/team_settings_modal.jsx
parent3e73ff25d35bf5638aabe70b8596b8c80eb0882b (diff)
downloadchat-bf82facd5afd6e2c71845f5732654069554c3a16.tar.gz
chat-bf82facd5afd6e2c71845f5732654069554c3a16.tar.bz2
chat-bf82facd5afd6e2c71845f5732654069554c3a16.zip
Moved the ability to rename a team into the team settings modal; fixed issues with valet settings
Diffstat (limited to 'web/react/components/team_settings_modal.jsx')
-rw-r--r--web/react/components/team_settings_modal.jsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/web/react/components/team_settings_modal.jsx b/web/react/components/team_settings_modal.jsx
index ef2564de0..7e65e8cab 100644
--- a/web/react/components/team_settings_modal.jsx
+++ b/web/react/components/team_settings_modal.jsx
@@ -6,6 +6,9 @@ var TeamSettings = require('./team_settings.jsx');
module.exports = React.createClass({
displayName: 'Team Settings Modal',
+ propTypes: {
+ teamDisplayName: React.PropTypes.string.isRequired
+ },
componentDidMount: function() {
$('body').on('click', '.modal-back', function onClick() {
$(this).closest('.modal-dialog').removeClass('display--content');
@@ -17,16 +20,17 @@ module.exports = React.createClass({
});
},
updateTab: function(tab) {
- this.setState({activeTab: tab});
+ this.setState({activeTab: tab, activeSection: ''});
},
updateSection: function(section) {
this.setState({activeSection: section});
},
getInitialState: function() {
- return {activeTab: 'feature', activeSection: ''};
+ return {activeTab: 'general', activeSection: ''};
},
render: function() {
var tabs = [];
+ tabs.push({name: 'general', uiName: 'General', icon: 'glyphicon glyphicon-cog'});
tabs.push({name: 'import', uiName: 'Import', icon: 'glyphicon glyphicon-upload'});
tabs.push({name: 'feature', uiName: 'Advanced', icon: 'glyphicon glyphicon-wrench'});
@@ -52,6 +56,7 @@ module.exports = React.createClass({
activeTab={this.state.activeTab}
activeSection={this.state.activeSection}
updateSection={this.updateSection}
+ teamDisplayName={this.props.teamDisplayName}
/>
</div>
</div>