diff --git a/ui/packages/consul-ui/app/components/consul/node/search-bar/index.hbs b/ui/packages/consul-ui/app/components/consul/node/search-bar/index.hbs index 47759b155d..995f9e773b 100644 --- a/ui/packages/consul-ui/app/components/consul/node/search-bar/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/node/search-bar/index.hbs @@ -101,7 +101,7 @@ as |key value|}} class="type-version" @position="left" @onchange={{action @filter.version.change}} - @multiple={{false}} + @multiple={{true}} as |components|> diff --git a/ui/packages/consul-ui/app/filter/predicates/node.js b/ui/packages/consul-ui/app/filter/predicates/node.js index 83eb3c98ea..4927078bf9 100644 --- a/ui/packages/consul-ui/app/filter/predicates/node.js +++ b/ui/packages/consul-ui/app/filter/predicates/node.js @@ -9,5 +9,12 @@ export default { warning: (item, value) => item.Status === value, critical: (item, value) => item.Status === value, }, - version: (item, value) => item.Version.includes(value + '.'), + version: (item, value) => { + for (const element of value) { + if (item.Version.includes(element + '.')) { + return true; + } + } + return false; + }, };