Skip to content

Commit

Permalink
fix(core): Filter flashes on non-fetchOnDemand apps (#8329)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyhebebrand committed Jun 12, 2020
1 parent e76e565 commit 0634363
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ module(CORE_CLUSTER_ALLCLUSTERS_CONTROLLER, [
'serverGroupCommandBuilder',
function($scope, app, $uibModal, $timeout, insightFilterStateModel, serverGroupCommandBuilder) {
this.$onInit = () => {
insightFilterStateModel.filtersHidden = true; // hidden to prevent filter flashing for on-demand apps
const groupsUpdatedSubscription = ClusterState.filterService.groupsUpdatedStream.subscribe(() =>
clusterGroupsUpdated(),
);
Expand All @@ -51,7 +50,7 @@ module(CORE_CLUSTER_ALLCLUSTERS_CONTROLLER, [
.ready()
.then(
() => {
insightFilterStateModel.filtersHidden = false;
insightFilterStateModel.filtersHidden = Boolean(this.dataSource.fetchOnDemand);
updateClusterGroups();
},
() => this.clustersLoadError(),
Expand Down

0 comments on commit 0634363

Please sign in to comment.