mirror of https://github.com/status-im/consul.git
Enable searching by port in the Node > [Service] listing
This commit is contained in:
parent
6e9cbeecd0
commit
2fb8530045
|
@ -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