Skip to content

Commit

Permalink
Merge pull request #6709 from bevacqua/chore/settings-codestyle
Browse files Browse the repository at this point in the history
[chore] Cleanup settings code style as reported by #6588.
  • Loading branch information
bevacqua committed Mar 31, 2016
2 parents 727f24b + 7b43d52 commit 26cedc7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugins/kibana/public/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ uiModules
},
link: function ($scope, $el) {
timefilter.enabled = false;
$scope.sections = sections;
$scope.sections = sections.inOrder;
$scope.section = _.find($scope.sections, { name: $scope.sectionName });

$scope.sections.forEach(function (section) {
section.class = (section === $scope.section) ? 'active' : void 0;
$scope.sections.forEach(section => {
section.class = section === $scope.section ? 'active' : undefined;
});
}
};
Expand Down

0 comments on commit 26cedc7

Please sign in to comment.