Enable searching by port in the Node > [Service] listing
This commit is contained in:
parent
429d2379aa
commit
b9c23dee69
|
@ -14,10 +14,15 @@ export default Controller.extend(WithFiltering, {
|
|||
set(this, 'selectedTab', 'health-checks');
|
||||
},
|
||||
filter: function(item, { s = '' }) {
|
||||
const term = s.toLowerCase();
|
||||
return (
|
||||
get(item, 'Service')
|
||||
.toLowerCase()
|
||||
.indexOf(s.toLowerCase()) !== -1
|
||||
.indexOf(term) !== -1 ||
|
||||
get(item, 'Port')
|
||||
.toString()
|
||||
.toLowerCase()
|
||||
.indexOf(term) !== -1
|
||||
);
|
||||
},
|
||||
actions: {
|
||||
|
|
Loading…
Reference in New Issue