Revert "Broadcast cluster's disconnected state before stopping KubeAuthProxy (#4273)" (#4412)

This reverts commit 8081d35f9c.
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-11-24 16:18:30 +03:00
1 parent 5d172b89db
commit 820b2d1b7a
7 files changed
+24 -47

No files matched your search

@@ -21,7 +21,6 @@
import { action, IReactionDisposer, makeObservable, observable, when } from "mobx";
import logger from "../../../main/logger";
import { broadcastMessage } from "../../../common/ipc";
import { clusterVisibilityHandler } from "../../../common/cluster-ipc";
import { ClusterStore } from "../../../common/cluster-store";
import type { ClusterId } from "../../../common/cluster-types";
@@ -89,7 +88,6 @@ export class ClusterFrameHandler extends Singleton {
logger.info(`[LENS-VIEW]: remove dashboard, clusterId=${clusterId}`);
this.views.delete(clusterId);
iframe.parentNode.removeChild(iframe);
broadcastMessage(`cluster:${clusterId}:frame-removed`);
dispose();
},
);