mirror of
https://github.com/status-im/consul.git
synced 2025-01-24 04:31:12 +00:00
4743ab045e
* ui: Add predicate, comparator and necessary files for the search/sort * Implement search and sort for upstream instance list * ui: Tweak CSS so its all part of the component * Remove the old proxy test attribute
13 lines
309 B
JavaScript
13 lines
309 B
JavaScript
export default () => term => item => {
|
|
const lowerTerm = term.toLowerCase();
|
|
return Object.entries(item)
|
|
.filter(([key, value]) => key !== 'DestinationType')
|
|
.some(
|
|
([key, value]) =>
|
|
value
|
|
.toString()
|
|
.toLowerCase()
|
|
.indexOf(lowerTerm) !== -1
|
|
);
|
|
};
|