This commit is contained in:
Colin Megill
2021-07-23 13:29:27 -07:00
parent e29a6f72c2
commit bb5bbaac8a
3 changed files with 38 additions and 9 deletions
+5 -8
View File
@@ -48,7 +48,7 @@ import { getEmbSubsetView } from "../../util/stateManager/viewStackHelpers";
tosURL: state.config?.parameters?.about_legal_tos,
privacyURL: state.config?.parameters?.about_legal_privacy,
categoricalSelection: state.categoricalSelection,
dotplotEnabled: true /* TODO(colinmegill) #632 wire dotplot*/,
dotplotEnabled: state.layoutChoice.dotplot,
};
})
class MenuBar extends React.PureComponent {
@@ -195,7 +195,10 @@ class MenuBar extends React.PureComponent {
dispatch(actions.resetSubsetAction());
};
handleDotplotToggle = () => {};
handleDotplotToggle = () => {
const { dispatch } = this.props;
dispatch({ type: "toggle dotplot" });
};
render() {
const {
@@ -265,9 +268,6 @@ class MenuBar extends React.PureComponent {
<Tooltip
content="Enable dotplot mode (hides embedding)"
position="bottom"
disabled={
false /* TODO(colinmegill) #632 if no genesets or categories*/
}
>
<AnchorButton
className={styles.menubarButton}
@@ -277,9 +277,6 @@ class MenuBar extends React.PureComponent {
onClick={this.handleDotplotToggle}
active={dotplotEnabled}
intent={dotplotEnabled ? "primary" : "none"}
disabled={
false /* TODO(colinmegill) #632 if no genesets or categories*/
}
/>
</Tooltip>
<Tooltip