feat: Add deleting subNamespaces to contextMenu

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-04-21 14:11:15 -04:00
1 parent aa950026a3
commit 89cf491bc0
3 files changed
+41 -1

No files matched your search

@@ -4,11 +4,13 @@
*/
import { getInjectionToken } from "@ogre-tools/injectable";
import type { IObservableArray } from "mobx";
import type { RequireAtLeastOne } from "type-fest";
import type { KubeObject } from "../../common/k8s-api/kube-object";
import type { BaseIconProps } from "../components/icon";
export interface KubeObjectContextMenuItem {
id?: string;
/**
* If the type is `string` then it is shorthand for {@link BaseIconProps.material}
*
@@ -29,7 +31,7 @@ export interface KubeObjectContextMenuItem {
}
export interface KubeObjectOnContextMenuOpenContext {
menuItems: KubeObjectContextMenuItem[];
readonly menuItems: IObservableArray<KubeObjectContextMenuItem>;
navigate: (location: string) => void;
}