diff options
author | Corey Hulen <corey@hulen.com> | 2015-09-24 12:30:18 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-09-24 12:30:18 -0700 |
commit | 6a4a73c2d37aa147e0aa2e157ca78ed275ef822b (patch) | |
tree | b961f87c1bd9a2428eaee8b5ebd8c9fd1baf0fcc /web/react/components/team_settings_modal.jsx | |
parent | caa157a3774ee86f0e7003ef4debc49bd88cb9f0 (diff) | |
parent | 8ad9a88bda0b6dc3f24945efdbe8b3aa4dcc4360 (diff) | |
download | chat-6a4a73c2d37aa147e0aa2e157ca78ed275ef822b.tar.gz chat-6a4a73c2d37aa147e0aa2e157ca78ed275ef822b.tar.bz2 chat-6a4a73c2d37aa147e0aa2e157ca78ed275ef822b.zip |
Merge pull request #787 from mattermost/PLT-30
PLT-30 Removing old valet crud
Diffstat (limited to 'web/react/components/team_settings_modal.jsx')
-rw-r--r-- | web/react/components/team_settings_modal.jsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/web/react/components/team_settings_modal.jsx b/web/react/components/team_settings_modal.jsx index 8ffbdc6d0..a96aadccf 100644 --- a/web/react/components/team_settings_modal.jsx +++ b/web/react/components/team_settings_modal.jsx @@ -20,8 +20,8 @@ export default class TeamSettingsModal extends React.Component { $('body').on('click', '.modal-back', function handleBackClick() { $(this).closest('.modal-dialog').removeClass('display--content'); }); - $('body').on('click', '.modal-header .close', function handleCloseClick() { - setTimeout(function removeContent() { + $('body').on('click', '.modal-header .close', () => { + setTimeout(() => { $('.modal-dialog.display--content').removeClass('display--content'); }, 500); }); @@ -33,13 +33,12 @@ export default class TeamSettingsModal extends React.Component { this.setState({activeSection: section}); } render() { - let tabs = []; + const tabs = []; tabs.push({name: 'general', uiName: 'General', icon: 'glyphicon glyphicon-cog'}); tabs.push({name: 'import', uiName: 'Import', icon: 'glyphicon glyphicon-upload'}); // To enable export uncomment this line //tabs.push({name: 'export', uiName: 'Export', icon: 'glyphicon glyphicon-download'}); - tabs.push({name: 'feature', uiName: 'Advanced', icon: 'glyphicon glyphicon-wrench'}); return ( <div @@ -65,7 +64,7 @@ export default class TeamSettingsModal extends React.Component { className='modal-title' ref='title' > - Team Settings + {'Team Settings'} </h4> </div> <div className='modal-body'> |