Skip to content

Commit

Permalink
Disable textarea while running
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosribas committed Jan 11, 2024
1 parent 553ccbf commit de1c53c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/r2dt-web.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/r2dt-web.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/containers/R2DT/components/SearchForm/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class SearchForm extends React.Component {
<form onSubmit={(e) => this.onSubmit(e)}>
<div className="row mt-1">
<div className="col-12 col-sm-9 mb-2">
<textarea style={{fontSize: fixCss}} className="form-control" id="sequence" name="sequence" rows="7" value={this.props.sequence} onChange={(e) => this.props.onSequenceTextareaChange(e)} placeholder="Enter RNA/DNA sequence (with an optional description in FASTA format) or job id" />
<textarea style={{fontSize: fixCss}} className="form-control" id="sequence" name="sequence" rows="7" value={this.props.sequence} disabled={this.props.status === "RUNNING" ? "disabled" : ""} onChange={(e) => this.props.onSequenceTextareaChange(e)} placeholder="Enter RNA/DNA sequence (with an optional description in FASTA format) or job id" />
</div>
<div className="col-12 col-sm-3">
{
Expand Down

0 comments on commit de1c53c

Please sign in to comment.