open-consul/ui/packages/consul-ui/app/search/predicates/service.js

5 lines
218 B
JavaScript

export default {
Name: (item, value) => item.Name.toLowerCase().indexOf(value.toLowerCase()) !== -1,
Tags: (item, value) => (item.Tags || []).some(item => item.toLowerCase().indexOf(value.toLowerCase()) !== -1)
};