1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

todo/fixme: hide active view on disconnect

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman 2020-08-08 12:53:26 +03:00
parent cf70fb5582
commit 116befbc89

View File

@ -9,7 +9,7 @@ import { ClusterStatus } from "./cluster-status";
import { clusterIpc } from "../../../common/cluster-ipc"; import { clusterIpc } from "../../../common/cluster-ipc";
import logger from "../../../main/logger"; import logger from "../../../main/logger";
// todo: figure out how to replace webview-tag to iframe // fixme: hide active view on disconnect
// fixme: webview reloading/blinking when switching common <-> cluster views // fixme: webview reloading/blinking when switching common <-> cluster views
interface LensView { interface LensView {
@ -47,6 +47,7 @@ export class ClusterView extends React.Component {
this.detachViews(); this.detachViews();
} }
// fixme: figure out how to replace webview-tag to iframe
initView = (clusterId: ClusterId) => { initView = (clusterId: ClusterId) => {
if (!clusterId || lensViews.has(clusterId)) { if (!clusterId || lensViews.has(clusterId)) {
return; return;