diff options
author | Asaad Mahmood <asaad@spinpunch.com> | 2016-03-23 04:06:08 +0500 |
---|---|---|
committer | Asaad Mahmood <asaad@spinpunch.com> | 2016-03-23 18:16:41 +0500 |
commit | e60f6f3b137839ed603a1b5d45cf658b6570ff91 (patch) | |
tree | dc50cde2a5e5c5732eab5cd11b9d219ce9444f5d /webapp/components/team_settings_modal.jsx | |
parent | 18b8ae5298f50161ffa55b6d8576a5438fe0091a (diff) | |
download | chat-e60f6f3b137839ed603a1b5d45cf658b6570ff91.tar.gz chat-e60f6f3b137839ed603a1b5d45cf658b6570ff91.tar.bz2 chat-e60f6f3b137839ed603a1b5d45cf658b6570ff91.zip |
Multiple UI improvements
Diffstat (limited to 'webapp/components/team_settings_modal.jsx')
-rw-r--r-- | webapp/components/team_settings_modal.jsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/webapp/components/team_settings_modal.jsx b/webapp/components/team_settings_modal.jsx index 7dbbd680a..c19787993 100644 --- a/webapp/components/team_settings_modal.jsx +++ b/webapp/components/team_settings_modal.jsx @@ -5,6 +5,7 @@ import $ from 'jquery'; import ReactDOM from 'react-dom'; import SettingsSidebar from './settings_sidebar.jsx'; import TeamSettings from './team_settings.jsx'; +import * as Utils from 'utils/utils.jsx'; import {intlShape, injectIntl, defineMessages, FormattedMessage} from 'react-intl'; @@ -49,9 +50,16 @@ class TeamSettingsModal extends React.Component { $('.modal-dialog.display--content').removeClass('display--content'); }, 500); }); + + if (!Utils.isMobile()) { + $('.settings-modal .settings-content').perfectScrollbar(); + } } updateTab(tab) { this.setState({activeTab: tab, activeSection: ''}); + if (!Utils.isMobile()) { + $('.settings-modal .modal-body').scrollTop(0).perfectScrollbar('update'); + } } updateSection(section) { this.setState({activeSection: section}); |