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');
|
set(this, 'selectedTab', 'health-checks');
|
||||||
},
|
},
|
||||||
filter: function(item, { s = '' }) {
|
filter: function(item, { s = '' }) {
|
||||||
|
const term = s.toLowerCase();
|
||||||
return (
|
return (
|
||||||
get(item, 'Service')
|
get(item, 'Service')
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.indexOf(s.toLowerCase()) !== -1
|
.indexOf(term) !== -1 ||
|
||||||
|
get(item, 'Port')
|
||||||
|
.toString()
|
||||||
|
.toLowerCase()
|
||||||
|
.indexOf(term) !== -1
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
|
Loading…
Reference in New Issue