mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: When disconnecting non active cluster from left menu, the active cluster gets disconnected
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
e9f60a7907
commit
1d9d4dbad4
@ -56,8 +56,10 @@ export class ClustersMenu extends React.Component<Props> {
|
||||
menu.append(new MenuItem({
|
||||
label: _i18n._(t`Disconnect`),
|
||||
click: async () => {
|
||||
navigate(clusterStatusURL());
|
||||
await clusterIpc.disconnect.invokeFromRenderer();
|
||||
await clusterIpc.disconnect.invokeFromRenderer(cluster.id);
|
||||
if (cluster.id === clusterStore.activeClusterId) {
|
||||
navigate(clusterStatusURL());
|
||||
}
|
||||
}
|
||||
}))
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user