Fix hotbar active check and accessible namespaces

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-07-28 10:42:23 -04:00
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(