Skip to content

Commit

Permalink
Changes for 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanF committed Apr 17, 2017
1 parent 836ba2b commit 52a15a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 2 additions & 5 deletions public/health_metric_vis.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
align-content: space-around;

.health-metric-value {
font-weight: bold;
Expand All @@ -16,6 +13,6 @@

.health-metric-container {
text-align: center;
padding: 1em;
margin: auto;
}
}
}
6 changes: 5 additions & 1 deletion public/health_metric_vis_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ module.controller('KbnHealthMetricVisController', function ($scope, Private) {

$scope.$watchMulti(['esResponse', 'vis.params'], function ([resp]) {
if (resp) {
const options = {
asAggConfigResults: true
};

metrics.length = 0;
$scope.processTableGroups(tabifyAggResponse($scope.vis, resp));
$scope.processTableGroups(tabifyAggResponse($scope.vis, resp, options));
$element.trigger('renderComplete');
}
});
Expand Down

0 comments on commit 52a15a2

Please sign in to comment.