Updated default dashboard, added filtering panel

This commit is contained in:
Rashid Khan
2013-07-14 21:42:35 -07:00
parent de8f8c5851
commit 2c5eb8bfb4
14 changed files with 230 additions and 87 deletions
+6 -5
View File
@@ -79,14 +79,15 @@ angular.module('kibana.fields', [])
eventBus.broadcast($scope.$id,$scope.panel.group,"selected_fields",$scope.active)
}
$scope.build_search = function(field,value,negate) {
var query = (negate ? '-':'+')+field+":\""+value+"\""
filterSrv.set({type:'querystring',query:query})
$scope.build_search = function(field,value,mandate) {
var query = field+":"+angular.toJson(value)
filterSrv.set({type:'querystring',query:query,mandate:mandate})
dashboard.refresh();
}
$scope.fieldExists = function(field,mode) {
filterSrv.set({type:mode,field:field})
$scope.fieldExists = function(field,mandate) {
filterSrv.set({type:'exists',field:field,mandate:mandate})
dashboard.refresh();
}