mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-30 08:18:12 +08:00
disable compute button until sets selected
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
@@ -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",
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user