mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
feat: Add deleting subNamespaces to contextMenu
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user