multiselection version filter

pull/17754/head
Vijay Srinivas 2023-07-08 19:11:30 +05:30
parent 25d30a3fa9
commit 7f1d6192dc
2 changed files with 9 additions and 2 deletions

View File

@ -101,7 +101,7 @@ as |key value|}}
class="type-version"
@position="left"
@onchange={{action @filter.version.change}}
@multiple={{false}}
@multiple={{true}}
as |components|>
<BlockSlot @name="selected">
<span>

View File

@ -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;
},
};