mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove unnecessary formatting changes
Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
This commit is contained in:
parent
42081df811
commit
22bcbadee6
@ -39,7 +39,7 @@ export const initClusterFrame =
|
|||||||
catalogEntityRegistry.init();
|
catalogEntityRegistry.init();
|
||||||
|
|
||||||
logger.info(
|
logger.info(
|
||||||
`${logPrefix} Init dashboard, clusterId=${hostedCluster.id}, frameId=${frameRoutingId}`
|
`${logPrefix} Init dashboard, clusterId=${hostedCluster.id}, frameId=${frameRoutingId}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
await requestSetClusterFrameId(hostedCluster.id);
|
await requestSetClusterFrameId(hostedCluster.id);
|
||||||
@ -57,11 +57,9 @@ export const initClusterFrame =
|
|||||||
onError: (error) => {
|
onError: (error) => {
|
||||||
logger.warn("[CLUSTER-FRAME]: error from activeEntity when()", error);
|
logger.warn("[CLUSTER-FRAME]: error from activeEntity when()", error);
|
||||||
|
|
||||||
showErrorNotification(
|
showErrorNotification("Failed to get KubernetesCluster for this view. Extensions will not be loaded.");
|
||||||
"Failed to get KubernetesCluster for this view. Extensions will not be loaded."
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@ -74,12 +72,12 @@ export const initClusterFrame =
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener("beforeunload", () => {
|
window.onbeforeunload = () => {
|
||||||
logger.info(
|
logger.info(
|
||||||
`${logPrefix} Unload dashboard, clusterId=${hostedCluster.id}, frameId=${frameRoutingId}`
|
`${logPrefix} Unload dashboard, clusterId=${hostedCluster.id}, frameId=${frameRoutingId}`
|
||||||
);
|
);
|
||||||
|
|
||||||
unmountRoot();
|
unmountRoot();
|
||||||
closeFileLogging();
|
closeFileLogging();
|
||||||
});
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user