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
+4 -1
View File
@@ -76,7 +76,8 @@ angular.module('kibana.table', [])
// Make sure we have everything for the request to complete
if(_.isUndefined($scope.panel.index) || _.isUndefined($scope.time))
return
$scope.panel.loading = true;
var request = $scope.ejs.Request().indices($scope.panel.index);
var results = request
@@ -94,6 +95,8 @@ angular.module('kibana.table', [])
// Populate scope when we have results
results.then(function(results) {
$scope.panel.loading = false;
if(_.isUndefined(results)) {
$scope.panel.error = 'Your query was unsuccessful';
return;