mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Make row filter case insensitive and also filter on display names
This commit is contained in:
parent
b607c1d173
commit
7292fb4d9f
1 changed files with 8 additions and 1 deletions
|
@ -529,8 +529,15 @@ define([
|
|||
// decide what rows we're showing...
|
||||
newRowsIds = [];
|
||||
if ($scope.panel.rowFilter) {
|
||||
var lcFilter = $scope.panel.rowFilter.toLowerCase();
|
||||
_.each(newData, function (s) {
|
||||
if (s.id.indexOf($scope.panel.rowFilter) >= 0) {
|
||||
var data = s.id.toLowerCase();
|
||||
if (data.indexOf(lcFilter) >= 0) {
|
||||
newRowsIds.push(s.id);
|
||||
return;
|
||||
}
|
||||
data = s.display_name.toLowerCase();
|
||||
if (data.indexOf(lcFilter) >= 0) {
|
||||
newRowsIds.push(s.id);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue