Skip to content

Commit

Permalink
Merge pull request #4 from DeanF/develop
Browse files Browse the repository at this point in the history
Fix issue #3
  • Loading branch information
DeanF authored Feb 6, 2017
2 parents ec3efe4 + a1901e1 commit eefd321
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bin/kibana plugin -i health_metric_vis -u https://github.com/DeanF/health_metric
```
For Kibana 5:
```bash
kibana-plugin install https://github.com/DeanF/health_metric_vis/releases/download/v0.3.3/health_metric_vis-${KIBANA_VERSION}.zip
kibana-plugin install https://github.com/DeanF/health_metric_vis/releases/download/v0.3.4/health_metric_vis-${KIBANA_VERSION}.zip
```


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "health_metric_vis",
"version": "0.3.3",
"version": "0.3.4",
"kibana": {
"version": "{VERSION}"
},
Expand Down
8 changes: 8 additions & 0 deletions public/health_metric_vis_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,15 @@ module.controller('KbnHealthMetricVisController', function ($scope, Private) {
$scope.$watch('esResponse', function (resp) {
if (resp) {
metrics.length = 0;
$scope.esResponse = resp;
$scope.processTableGroups(tabifyAggResponse($scope.vis, resp));
}
});

$scope.$watch('vis.params', function (val) {
if ($scope.esResponse) {
metrics.length = 0;
$scope.processTableGroups(tabifyAggResponse($scope.vis, $scope.esResponse));
}
});
});

0 comments on commit eefd321

Please sign in to comment.