Skip to content

Commit

Permalink
changing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Mar 20, 2020
1 parent 6234ed7 commit bf89eb2
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ export class Datafeed extends Component {

render() {
const { query, queryDelay, frequency, scrollSize, defaults } = this.state;
const disabled = this.props.datafeedRunning;
const { datafeedRunning } = this.props;
return (
<React.Fragment>
<EuiSpacer size="m" />
{disabled && (
{datafeedRunning && (
<>
<EuiCallOut color="warning">
<FormattedMessage
Expand All @@ -109,7 +109,7 @@ export class Datafeed extends Component {
value={query}
onChange={this.onQueryChange}
height="200px"
readOnly={disabled}
readOnly={datafeedRunning}
/>
</EuiFormRow>
<EuiFormRow
Expand All @@ -124,7 +124,7 @@ export class Datafeed extends Component {
value={queryDelay}
placeholder={defaults.queryDelay}
onChange={this.onQueryDelayChange}
disabled={disabled}
disabled={datafeedRunning}
/>
</EuiFormRow>
<EuiFormRow
Expand All @@ -139,7 +139,7 @@ export class Datafeed extends Component {
value={frequency}
placeholder={defaults.frequency}
onChange={this.onFrequencyChange}
disabled={disabled}
disabled={datafeedRunning}
/>
</EuiFormRow>
<EuiFormRow
Expand All @@ -154,7 +154,7 @@ export class Datafeed extends Component {
value={scrollSize}
placeholder={defaults.scrollSize}
onChange={this.onScrollSizeChange}
disabled={disabled}
disabled={datafeedRunning}
/>
</EuiFormRow>
</EuiForm>
Expand Down

0 comments on commit bf89eb2

Please sign in to comment.