Added loader animation, framework for adjustable interval time stamped indices

This commit is contained in:
Rashid Khan
2013-02-27 10:00:39 -07:00
parent ffbddb4fae
commit 4c948e0bc5
14 changed files with 124 additions and 115 deletions
+2
View File
@@ -50,6 +50,7 @@ angular.module('kibana.histogram', [])
if(_.isUndefined($scope.panel.index) || _.isUndefined($scope.time))
return
$scope.panel.loading = true;
var request = $scope.ejs.Request().indices($scope.panel.index);
// Build the question part of the query
@@ -78,6 +79,7 @@ angular.module('kibana.histogram', [])
// Populate scope when we have results
results.then(function(results) {
$scope.panel.loading = false;
$scope.hits = results.hits.total;
$scope.data = [];
_.each(results.facets, function(v, k) {