mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 04:38:12 +08:00
dotplot button
This commit is contained in:
@@ -48,6 +48,7 @@ import { getEmbSubsetView } from "../../util/stateManager/viewStackHelpers";
|
|||||||
tosURL: state.config?.parameters?.about_legal_tos,
|
tosURL: state.config?.parameters?.about_legal_tos,
|
||||||
privacyURL: state.config?.parameters?.about_legal_privacy,
|
privacyURL: state.config?.parameters?.about_legal_privacy,
|
||||||
categoricalSelection: state.categoricalSelection,
|
categoricalSelection: state.categoricalSelection,
|
||||||
|
dotplotEnabled: true /* TODO(colinmegill) #632 wire dotplot*/,
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
class MenuBar extends React.PureComponent {
|
class MenuBar extends React.PureComponent {
|
||||||
@@ -194,6 +195,8 @@ class MenuBar extends React.PureComponent {
|
|||||||
dispatch(actions.resetSubsetAction());
|
dispatch(actions.resetSubsetAction());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
handleDotplotToggle = () => {};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
dispatch,
|
dispatch,
|
||||||
@@ -211,6 +214,7 @@ class MenuBar extends React.PureComponent {
|
|||||||
subsetResetPossible,
|
subsetResetPossible,
|
||||||
userInfo,
|
userInfo,
|
||||||
auth,
|
auth,
|
||||||
|
dotplotEnabled,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const { pendingClipPercentiles } = this.state;
|
const { pendingClipPercentiles } = this.state;
|
||||||
|
|
||||||
@@ -258,6 +262,26 @@ class MenuBar extends React.PureComponent {
|
|||||||
this.handleClipPercentileMinValueChange
|
this.handleClipPercentileMinValueChange
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
<Tooltip
|
||||||
|
content="Enable dotplot mode (hides embedding)"
|
||||||
|
position="bottom"
|
||||||
|
disabled={
|
||||||
|
false /* TODO(colinmegill) #632 if no genesets or categories*/
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<AnchorButton
|
||||||
|
className={styles.menubarButton}
|
||||||
|
type="button"
|
||||||
|
data-testid="dotplot-toggle"
|
||||||
|
icon="layout-grid"
|
||||||
|
onClick={this.handleDotplotToggle}
|
||||||
|
active={dotplotEnabled}
|
||||||
|
intent={dotplotEnabled ? "primary" : "none"}
|
||||||
|
disabled={
|
||||||
|
false /* TODO(colinmegill) #632 if no genesets or categories*/
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</Tooltip>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
content="When a category is colored by, show labels on the graph"
|
content="When a category is colored by, show labels on the graph"
|
||||||
position="bottom"
|
position="bottom"
|
||||||
|
|||||||
Reference in New Issue
Block a user