mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Navigate to catalog explicitly on cluster disconnect (#7304)
* Navigate to catalog explicitly on cluster disconnect Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Linter fix Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> --------- Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
0084af56d6
commit
963c816b17
2 files changed
+12
-8
No files matched your search
@@ -127,7 +127,13 @@ export class KubernetesCluster<
|
||||
context.menuItems.push({
|
||||
title: "Disconnect",
|
||||
icon: "link_off",
|
||||
onClick: () => requestClusterDisconnection(this.getId()),
|
||||
onClick: () => {
|
||||
requestClusterDisconnection(this.getId());
|
||||
broadcastMessage(
|
||||
IpcRendererNavigationEvents.NAVIGATE_IN_APP,
|
||||
"/catalog",
|
||||
);
|
||||
},
|
||||
});
|
||||
break;
|
||||
case LensKubernetesClusterStatus.DISCONNECTED:
|
||||
|
||||
Reference in new issue
Block a user