Add ability to rename hotbars (#3469)

Signed-off-by: vshakirova <vshakirova@mirantis.com>
This commit is contained in:
Violetta Shakirova authored and GitHub committed 2021-07-27 08:54:41 -04:00
1 parent f507ec9e6c
commit 1b11433bca
6 files changed
+147 -4

No files matched your search

@@ -29,6 +29,7 @@ import { HotbarAddCommand } from "../components/hotbar/hotbar-add-command";
import { HotbarRemoveCommand } from "../components/hotbar/hotbar-remove-command";
import { HotbarSwitchCommand } from "../components/hotbar/hotbar-switch-command";
import { navigate } from "../navigation";
import { HotbarRenameCommand } from "../components/hotbar/hotbar-rename-command";
export function initCommandRegistry() {
CommandRegistry.getInstance()
@@ -189,5 +190,11 @@ export function initCommandRegistry() {
scope: "global",
action: () => CommandOverlay.open(<HotbarRemoveCommand />)
},
{
id: "hotbar.renameHotbar",
title: "Hotbar: Rename Hotbar ...",
scope: "global",
action: () => CommandOverlay.open(<HotbarRenameCommand />)
},
]);
}