Hidding filterbar when no filters are present

This commit is contained in:
havidarou 2017-11-14 18:32:20 -05:00
parent a6690c9874
commit 81c76bd872

View File

@ -28,6 +28,11 @@ app.controller('kibanaSearchbar', function ($scope, timefilter, AppState, $timeo
};
}
$scope.showFilterBar = function () {
if (filterBar.getFilters().length == 0) return false;
else return true;
};
$scope.$listen(filterBar, 'update', function () {
$scope.updateQueryAndFetch($scope.state.query);
});