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",
}}
+3 -2
View File
@@ -21,14 +21,15 @@ export const continuous = [
]
/* colors */
export const hcaBlue = "#1c7cc7"
export const blue = "#4a90e2";
export const hcaBlue = "#1c7cc7";
export const lighterGrey = "rgb(245,245,245)";
export const lightGrey = "rgb(211,211,211)";
export const mediumGrey = "rgb(153,153,153)";
export const darkGrey = "rgb(102,102,102)";
export const darkerGrey = "rgb(51,51,51)";
export const brightBlue = "#3B98FC";
export const brightBlue = "#4a90e2";
export const brightGreen = "#A2D729";
export const darkGreen = "#448C4D";