mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 10:18:57 +00:00
Hidding filterbar when no filters are present
This commit is contained in:
parent
a6690c9874
commit
81c76bd872
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user