disable compute button until sets selected

This commit is contained in:
Colin Megill
2018-04-09 06:09:54 -07:00
parent c28bddfd75
commit 694879d897
3 changed files with 35 additions and 17 deletions
+31 -14
View File
@@ -60,20 +60,37 @@ class Expression extends React.Component {
eitherCellSetOneOrTwo={2}/>
</div>
<div>
<button
style={{
fontSize: 18,
margin: 10,
fontWeight: 700,
color: "#FFF",
padding: "12px 20px",
backgroundColor: globals.darkGreen,
border: "none",
cursor: "pointer",
}}
onClick={this.computeDiffExp.bind(this)}>
Compute differential expression
</button>
{
this.props.differential.celllist1 && this.props.differential.celllist2 ?
<button
style={{
fontSize: 18,
margin: 10,
fontWeight: 700,
color: "#FFF",
padding: "12px 20px",
backgroundColor: globals.brightBlue,
border: "none",
cursor: "pointer",
}}
onClick={this.computeDiffExp.bind(this)}>
Compute differential expression
</button> :
<button
style={{
fontSize: 18,
margin: 10,
fontWeight: 700,
color: "#FFF",
padding: "12px 20px",
backgroundColor: globals.mediumGrey,
border: "none",
}}
>
Compute differential expression
</button>
}
</div>
</div>
)
+1 -1
View File
@@ -242,7 +242,7 @@ class Graph extends React.Component {
fontWeight: 400,
color: "white",
padding: "10px 20px",
backgroundColor: globals.darkGreen,
backgroundColor: globals.brightBlue,
border: "none",
cursor: "pointer",
}}