Modifying the team name field to only accept 15 charactors (#4415)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
420bc367fa
Коммит
ce6b4b8fdf
@@ -8,6 +8,7 @@ import SettingItemMax from './setting_item_max.jsx';
|
|||||||
import Client from 'client/web_client.jsx';
|
import Client from 'client/web_client.jsx';
|
||||||
import * as Utils from 'utils/utils.jsx';
|
import * as Utils from 'utils/utils.jsx';
|
||||||
import TeamStore from 'stores/team_store.jsx';
|
import TeamStore from 'stores/team_store.jsx';
|
||||||
|
import Constants from 'utils/constants.jsx';
|
||||||
|
|
||||||
import {intlShape, injectIntl, defineMessages, FormattedMessage, FormattedHTMLMessage} from 'react-intl';
|
import {intlShape, injectIntl, defineMessages, FormattedMessage, FormattedHTMLMessage} from 'react-intl';
|
||||||
|
|
||||||
@@ -430,7 +431,7 @@ class GeneralTab extends React.Component {
|
|||||||
<input
|
<input
|
||||||
className='form-control'
|
className='form-control'
|
||||||
type='text'
|
type='text'
|
||||||
maxLength='22'
|
maxLength={Constants.MAX_TEAMNAME_LENGTH.toString()}
|
||||||
onChange={this.updateName}
|
onChange={this.updateName}
|
||||||
value={this.state.name}
|
value={this.state.name}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user