summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-11-01 16:18:19 -0400
committerCorey Hulen <corey@hulen.com>2016-11-01 13:18:19 -0700
commitce6b4b8fdf99214ea307d1916538f8d7e97f0316 (patch)
treea1128f355f511c854e66d88981bfd5166a4b48f9
parent420bc367fa10047dc40c7e5165f6e8f05438957c (diff)
downloadchat-ce6b4b8fdf99214ea307d1916538f8d7e97f0316.tar.gz
chat-ce6b4b8fdf99214ea307d1916538f8d7e97f0316.tar.bz2
chat-ce6b4b8fdf99214ea307d1916538f8d7e97f0316.zip
Modifying the team name field to only accept 15 charactors (#4415)
-rw-r--r--webapp/components/team_general_tab.jsx3
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}
/>