diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-11-01 16:18:19 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-11-01 13:18:19 -0700 |
commit | ce6b4b8fdf99214ea307d1916538f8d7e97f0316 (patch) | |
tree | a1128f355f511c854e66d88981bfd5166a4b48f9 /webapp/components/team_general_tab.jsx | |
parent | 420bc367fa10047dc40c7e5165f6e8f05438957c (diff) | |
download | chat-ce6b4b8fdf99214ea307d1916538f8d7e97f0316.tar.gz chat-ce6b4b8fdf99214ea307d1916538f8d7e97f0316.tar.bz2 chat-ce6b4b8fdf99214ea307d1916538f8d7e97f0316.zip |
Modifying the team name field to only accept 15 charactors (#4415)
Diffstat (limited to 'webapp/components/team_general_tab.jsx')
-rw-r--r-- | webapp/components/team_general_tab.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/team_general_tab.jsx b/webapp/components/team_general_tab.jsx index 0d7acb0ca..1d749f480 100644 --- a/webapp/components/team_general_tab.jsx +++ b/webapp/components/team_general_tab.jsx @@ -8,6 +8,7 @@ import SettingItemMax from './setting_item_max.jsx'; import Client from 'client/web_client.jsx'; import * as Utils from 'utils/utils.jsx'; import TeamStore from 'stores/team_store.jsx'; +import Constants from 'utils/constants.jsx'; import {intlShape, injectIntl, defineMessages, FormattedMessage, FormattedHTMLMessage} from 'react-intl'; @@ -430,7 +431,7 @@ class GeneralTab extends React.Component { <input className='form-control' type='text' - maxLength='22' + maxLength={Constants.MAX_TEAMNAME_LENGTH.toString()} onChange={this.updateName} value={this.state.name} /> |