mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix hotbar active check and accessible namespaces
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
78ea32eaa3
commit
1f0e79cee8
4 files changed
+41
-18
No files matched your search
@@ -103,18 +103,20 @@ export class KubernetesCluster extends CatalogEntity<KubernetesClusterMetadata,
|
||||
}
|
||||
|
||||
async onContextMenuOpen(context: CatalogEntityContextMenuContext) {
|
||||
context.menuItems.push(
|
||||
{
|
||||
title: "Open",
|
||||
icon: "open_in_full",
|
||||
onClick: () => this.onRun(),
|
||||
},
|
||||
{
|
||||
title: "Open in new window",
|
||||
icon: "launch",
|
||||
onClick: () => requestMain(onNewWindowForClusterHandler, this.getId()),
|
||||
},
|
||||
);
|
||||
if (this.status.phase === "connected" || this.status.phase === "disconnected") {
|
||||
context.menuItems.push(
|
||||
{
|
||||
title: "Open",
|
||||
icon: "open_in_full",
|
||||
onClick: () => this.onRun(),
|
||||
},
|
||||
{
|
||||
title: "Open in new window",
|
||||
icon: "launch",
|
||||
onClick: () => requestMain(onNewWindowForClusterHandler, this.getId()),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
if (!this.metadata.source || this.metadata.source === "local") {
|
||||
context.menuItems.push(
|
||||
|
||||
Reference in new issue
Block a user