mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-02 21:08:12 +08:00
disable cell set buttons (#538)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// jshint esversion: 6
|
// jshint esversion: 6
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import _ from "lodash";
|
import _ from "lodash";
|
||||||
import { Button, Tooltip } from "@blueprintjs/core";
|
import { AnchorButton, Tooltip } from "@blueprintjs/core";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
|
|
||||||
@connect()
|
@connect()
|
||||||
@@ -33,9 +33,10 @@ class CellSetButton extends React.Component {
|
|||||||
content="Save current selection for differential expression computation"
|
content="Save current selection for differential expression computation"
|
||||||
position="top"
|
position="top"
|
||||||
>
|
>
|
||||||
<Button
|
<AnchorButton
|
||||||
style={{ marginRight: 10 }}
|
style={{ marginRight: 10 }}
|
||||||
type="button"
|
type="button"
|
||||||
|
disabled={differential.diffExp}
|
||||||
onClick={this.set.bind(this)}
|
onClick={this.set.bind(this)}
|
||||||
>
|
>
|
||||||
{eitherCellSetOneOrTwo}
|
{eitherCellSetOneOrTwo}
|
||||||
@@ -43,7 +44,7 @@ class CellSetButton extends React.Component {
|
|||||||
{differential[cellListName]
|
{differential[cellListName]
|
||||||
? `${differential[cellListName].length} cells`
|
? `${differential[cellListName].length} cells`
|
||||||
: "0 cells"}
|
: "0 cells"}
|
||||||
</Button>
|
</AnchorButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user