diff --git a/src/renderer/components/hotbar/hotbar-menu.scss b/src/renderer/components/hotbar/hotbar-menu.scss index 3adc4fb91c..e8cf6efc1a 100644 --- a/src/renderer/components/hotbar/hotbar-menu.scss +++ b/src/renderer/components/hotbar/hotbar-menu.scss @@ -27,5 +27,9 @@ position: absolute; bottom: 0; width: 100%; + + .Badge { + cursor: pointer; + } } } diff --git a/src/renderer/components/hotbar/hotbar-menu.tsx b/src/renderer/components/hotbar/hotbar-menu.tsx index c0c034fc79..90b0fc9978 100644 --- a/src/renderer/components/hotbar/hotbar-menu.tsx +++ b/src/renderer/components/hotbar/hotbar-menu.tsx @@ -11,6 +11,9 @@ import { catalogEntityRunContext } from "../../api/catalog-entity"; import { reaction } from "mobx"; import { Notifications } from "../notifications"; import { Icon } from "../icon"; +import { Badge } from "../badge"; +import { CommandOverlay } from "../command-palette"; +import { HotbarSwitchCommand } from "./hotbar-switch-command"; interface Props { className?: IClassName; @@ -60,8 +63,13 @@ export class HotbarMenu extends React.Component { hotbarStore.activeHotbarId = hotbarStore.hotbars[index].id; } + openSelector() { + CommandOverlay.open(); + } + render() { const { className } = this.props; + const hotbarIndex = hotbarStore.activeHotbarIndex + 1; return (
@@ -80,6 +88,9 @@ export class HotbarMenu extends React.Component {
this.previous()} /> +
+ this.openSelector()} /> +
this.next()} />