mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: "disconnect" cluster from clusters context-menu
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
70bbb9fa62
commit
a40a9fec0e
3 files changed
+14
-11
No files matched your search
@@ -9,24 +9,24 @@ export const clusterIpc = {
|
||||
const cluster = clusterStore.getById(clusterId);
|
||||
if (cluster) {
|
||||
await cluster.refreshStatus();
|
||||
cluster.pushState();
|
||||
return cluster.pushState();
|
||||
}
|
||||
},
|
||||
}),
|
||||
|
||||
disconnect: createIpcChannel({
|
||||
channel: "cluster:disconnect",
|
||||
handle: (clusterId: ClusterId) => {
|
||||
handle: (clusterId: ClusterId = clusterStore.activeClusterId) => {
|
||||
tracker.event("cluster", "stop");
|
||||
clusterStore.getById(clusterId)?.disconnect();
|
||||
return clusterStore.getById(clusterId)?.disconnect();
|
||||
},
|
||||
}),
|
||||
|
||||
reconnect: createIpcChannel({
|
||||
channel: "cluster:reconnect",
|
||||
handle: (clusterId: ClusterId) => {
|
||||
handle: (clusterId: ClusterId = clusterStore.activeClusterId) => {
|
||||
tracker.event("cluster", "reconnect");
|
||||
clusterStore.getById(clusterId)?.reconnect();
|
||||
return clusterStore.getById(clusterId)?.reconnect();
|
||||
},
|
||||
}),
|
||||
}
|
||||
Reference in new issue
Block a user