mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: refresh visibility of active cluster-view on switching from hotbar/catalog
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
parent
8882e65456
commit
448d1ccd61
@ -60,7 +60,8 @@ export class ClusterView extends React.Component {
|
|||||||
|
|
||||||
bindEvents() {
|
bindEvents() {
|
||||||
disposeOnUnmount(this, [
|
disposeOnUnmount(this, [
|
||||||
reaction(() => this.clusterId, clusterId => {
|
reaction(() => this.clusterId, async (clusterId) => {
|
||||||
|
refreshViews(clusterId); // refresh visibility of active cluster
|
||||||
initView(clusterId); // init cluster-view (iframe), requires parent container #lens-views to be in DOM
|
initView(clusterId); // init cluster-view (iframe), requires parent container #lens-views to be in DOM
|
||||||
requestMain(clusterActivateHandler, clusterId, false); // activate and fetch cluster's state from main
|
requestMain(clusterActivateHandler, clusterId, false); // activate and fetch cluster's state from main
|
||||||
catalogEntityRegistry.activeEntity = catalogEntityRegistry.getById(clusterId);
|
catalogEntityRegistry.activeEntity = catalogEntityRegistry.getById(clusterId);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user