added ability to add new tabs to editor panels

This commit is contained in:
Rashid Khan
2013-08-16 12:45:22 -07:00
parent 5aaa9d5876
commit 93b48a7d29
27 changed files with 78 additions and 62 deletions
+4 -1
View File
@@ -26,6 +26,9 @@ angular.module('kibana.table', [])
.controller('table', function($rootScope, $scope, fields, querySrv, dashboard, filterSrv) {
$scope.panelMeta = {
editorTabs : [
{title:'Queries', src:'partials/querySelect.html'}
],
status: "Stable",
description: "A paginated table of records matching your query or queries. Click on a row to "+
"expand it and review all of the fields associated with that document. <p>"
@@ -221,7 +224,7 @@ angular.module('kibana.table', [])
// size*pages results
// Otherwise, only get size*pages results then stop querying
if (($scope.data.length < $scope.panel.size*$scope.panel.pages ||
!(($scope.panel.sort[0] === filterSrv.timeField()) && $scope.panel.sort[1] === 'desc')) &&
!((_.contains(filterSrv.timeField(),$scope.panel.sort[0])) && $scope.panel.sort[1] === 'desc')) &&
_segment+1 < dashboard.indices.length) {
$scope.get_data(_segment+1,$scope.query_id);
}