|
|
@ -47,7 +47,7 @@ export class ScopesDashboardsScene extends SceneObjectBase<ScopesDashboardsScene |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.addActivationHandler(() => { |
|
|
|
this.addActivationHandler(() => { |
|
|
|
if (this.state.isPanelOpened) { |
|
|
|
if (this.state.isEnabled && this.state.isPanelOpened) { |
|
|
|
this.fetchDashboards(); |
|
|
|
this.fetchDashboards(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -57,6 +57,7 @@ export class ScopesDashboardsScene extends SceneObjectBase<ScopesDashboardsScene |
|
|
|
this._subs.add( |
|
|
|
this._subs.add( |
|
|
|
resolvedSelector.subscribeToState((newState, prevState) => { |
|
|
|
resolvedSelector.subscribeToState((newState, prevState) => { |
|
|
|
if ( |
|
|
|
if ( |
|
|
|
|
|
|
|
this.state.isEnabled && |
|
|
|
this.state.isPanelOpened && |
|
|
|
this.state.isPanelOpened && |
|
|
|
!newState.isLoadingScopes && |
|
|
|
!newState.isLoadingScopes && |
|
|
|
(prevState.isLoadingScopes || newState.scopes !== prevState.scopes) |
|
|
|
(prevState.isLoadingScopes || newState.scopes !== prevState.scopes) |
|
|
|