1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/renderer/components/+nodes/node.command.ts
Jari Kolehmainen 60f6af4a0a add more commands
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-01-24 14:24:27 +02:00

11 lines
313 B
TypeScript

import { navigate } from "../../navigation";
import { commandRegistry } from "../../../extensions/registries/command-registry";
import { nodesURL } from "./nodes.route";
commandRegistry.add({
id: "cluster.viewNodes",
title: "Cluster: View Nodes",
scope: "cluster",
action: () => navigate(nodesURL())
});