mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-12 19:30:52 +00:00
fix filtering in task status selector (#4741)
Signed-off-by: Vlad Timofeev <11474041+vlad-timofeev@users.noreply.github.com>
This commit is contained in:
parent
83e7723f16
commit
6f89f2fd2b
@ -61,11 +61,15 @@
|
||||
$: updateStatuses($taskTypeStore, $statusStore.byId, kind)
|
||||
|
||||
let statuses: Status[] = []
|
||||
let searchQuery: string = ''
|
||||
$: filteredStatuses = !searchQuery
|
||||
? statuses
|
||||
: statuses.filter((status) => (status.name ?? '').toLowerCase().includes(searchQuery.toLowerCase()))
|
||||
</script>
|
||||
|
||||
<DocPopup
|
||||
{_class}
|
||||
objects={statuses}
|
||||
objects={filteredStatuses}
|
||||
allowDeselect={true}
|
||||
selected={current}
|
||||
on:close={(evt) => {
|
||||
@ -76,6 +80,7 @@
|
||||
{embedded}
|
||||
loading={progress}
|
||||
on:changeContent
|
||||
on:search={(e) => (searchQuery = e.detail)}
|
||||
>
|
||||
<svelte:fragment slot="item" let:item>
|
||||
<div class="flex-row-center flex-grow overflow-label">
|
||||
|
Loading…
Reference in New Issue
Block a user