1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-08-26 19:52:47 -04:00
parent 1cb16f3d89
commit 42e4c2bbab

View File

@ -164,12 +164,14 @@ export function initCommandRegistry() {
entityId: getActiveClusterEntity()?.id, entityId: getActiveClusterEntity()?.id,
} }
})), })),
isActive: (context) => !!context.entity
}, },
{ {
id: "cluster.openTerminal", id: "cluster.openTerminal",
title: "Cluster: Open terminal", title: "Cluster: Open terminal",
scope: "entity", scope: "entity",
action: () => createTerminalTab(), action: () => createTerminalTab(),
isActive: (context) => !!context.entity
}, },
{ {
id: "hotbar.switchHotbar", id: "hotbar.switchHotbar",