disable cell set buttons (#538)

This commit is contained in:
Colin Megill
2019-01-03 20:05:09 -05:00
committed by GitHub
parent 7499fca251
commit b0daeb3a9b

View File

@@ -1,7 +1,7 @@
// jshint esversion: 6
import React from "react";
import _ from "lodash";
import { Button, Tooltip } from "@blueprintjs/core";
import { AnchorButton, Tooltip } from "@blueprintjs/core";
import { connect } from "react-redux";
@connect()
@@ -33,9 +33,10 @@ class CellSetButton extends React.Component {
content="Save current selection for differential expression computation"
position="top"
>
<Button
<AnchorButton
style={{ marginRight: 10 }}
type="button"
disabled={differential.diffExp}
onClick={this.set.bind(this)}
>
{eitherCellSetOneOrTwo}
@@ -43,7 +44,7 @@ class CellSetButton extends React.Component {
{differential[cellListName]
? `${differential[cellListName].length} cells`
: "0 cells"}
</Button>
</AnchorButton>
</Tooltip>
);
}