PLT-4125 Prevent typing on settings that use the regenerate button (#4016)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
1e7985a87a
Коммит
abe6e8e471
@@ -37,14 +37,9 @@ export default class GeneratedSetting extends React.Component {
|
|||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
this.handleChange = this.handleChange.bind(this);
|
|
||||||
this.regenerate = this.regenerate.bind(this);
|
this.regenerate = this.regenerate.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleChange(e) {
|
|
||||||
this.props.onChange(this.props.id, e.target.value === 'true');
|
|
||||||
}
|
|
||||||
|
|
||||||
regenerate(e) {
|
regenerate(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
@@ -76,8 +71,7 @@ export default class GeneratedSetting extends React.Component {
|
|||||||
id={this.props.id}
|
id={this.props.id}
|
||||||
placeholder={this.props.placeholder}
|
placeholder={this.props.placeholder}
|
||||||
value={this.props.value}
|
value={this.props.value}
|
||||||
onChange={this.handleChange}
|
disabled={true}
|
||||||
disabled={this.props.disabled}
|
|
||||||
/>
|
/>
|
||||||
{disabledText}
|
{disabledText}
|
||||||
<div className='help-text'>
|
<div className='help-text'>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user