Geneset remove toggle (#2184)

* no toggle, histo at top

* set mean expression, truncation

* gene set
This commit is contained in:
Colin Megill
2021-05-05 19:51:05 -04:00
committed by GitHub
parent 25b308c532
commit 096d8ff1d2
4 changed files with 20 additions and 66 deletions
@@ -61,20 +61,9 @@ class GenesetMenus extends React.PureComponent {
};
render() {
const {
geneset,
genesetsEditable,
createText,
colorAccessor,
isOpen,
toggleSummaryHisto,
} = this.props;
const { geneset, genesetsEditable, createText, colorAccessor } = this.props;
const isColorBy = geneset === colorAccessor;
const genesetClosed = !isOpen;
const showingAllGenes = !toggleSummaryHisto;
const notShowingSummary = genesetClosed || showingAllGenes;
return (
<>
@@ -130,12 +119,11 @@ class GenesetMenus extends React.PureComponent {
/>
</Popover>
<Tooltip2
content={`Color by gene set ${geneset} mean (gene set must be open, and toggled to mean expression histogram)`}
content={`Color by gene set ${geneset} mean`}
position={Position.BOTTOM}
hoverOpenDelay={globals.tooltipHoverOpenDelay}
>
<AnchorButton
disabled={notShowingSummary && !isColorBy}
active={isColorBy}
intent={isColorBy ? "primary" : "none"}
style={{ marginLeft: 0 }}