[PLT-6655] Remove 1024 character limit with text settings at system console, except sitename of custom branding (#6597)
* remove 1024 character limit with text settings at system console, except sitename of custom branding * add ability to set textarea of TextSetting
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
fcc9a8e6ae
Коммит
94e734c1bd
@@ -6,7 +6,6 @@ import PropTypes from 'prop-types';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import Setting from './setting.jsx';
|
import Setting from './setting.jsx';
|
||||||
import Constants from 'utils/constants.jsx';
|
|
||||||
|
|
||||||
export default class TextSetting extends React.Component {
|
export default class TextSetting extends React.Component {
|
||||||
static get propTypes() {
|
static get propTypes() {
|
||||||
@@ -32,7 +31,7 @@ export default class TextSetting extends React.Component {
|
|||||||
static get defaultProps() {
|
static get defaultProps() {
|
||||||
return {
|
return {
|
||||||
type: 'input',
|
type: 'input',
|
||||||
maxLength: Constants.MAX_TEXTSETTING_LENGTH
|
maxLength: null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,9 +66,9 @@ export default class TextSetting extends React.Component {
|
|||||||
id={this.props.id}
|
id={this.props.id}
|
||||||
className='form-control'
|
className='form-control'
|
||||||
rows='5'
|
rows='5'
|
||||||
maxLength='1024'
|
|
||||||
placeholder={this.props.placeholder}
|
placeholder={this.props.placeholder}
|
||||||
value={this.props.value}
|
value={this.props.value}
|
||||||
|
maxLength={this.props.maxLength}
|
||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
disabled={this.props.disabled}
|
disabled={this.props.disabled}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -931,7 +931,6 @@ export const Constants = {
|
|||||||
MAX_POSITION_LENGTH: 35,
|
MAX_POSITION_LENGTH: 35,
|
||||||
MIN_TRIGGER_LENGTH: 1,
|
MIN_TRIGGER_LENGTH: 1,
|
||||||
MAX_TRIGGER_LENGTH: 128,
|
MAX_TRIGGER_LENGTH: 128,
|
||||||
MAX_TEXTSETTING_LENGTH: 1024,
|
|
||||||
MAX_SITENAME_LENGTH: 30,
|
MAX_SITENAME_LENGTH: 30,
|
||||||
TIME_SINCE_UPDATE_INTERVAL: 30000,
|
TIME_SINCE_UPDATE_INTERVAL: 30000,
|
||||||
MIN_HASHTAG_LINK_LENGTH: 3,
|
MIN_HASHTAG_LINK_LENGTH: 3,
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user