mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-02 13:52:40 +00:00
Fix filter removing values (#2940)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
fdae734430
commit
2574918a32
@ -109,10 +109,13 @@
|
|||||||
}
|
}
|
||||||
const oldSize = filter.value.length
|
const oldSize = filter.value.length
|
||||||
filter.value = filter.value.filter((p) => !targets.has(p._id))
|
filter.value = filter.value.filter((p) => !targets.has(p._id))
|
||||||
onChange(filter)
|
const removed = oldSize - (filter.value.length ?? 0)
|
||||||
addNotification(await translate(view.string.FilterUpdated, {}), filter.key.label, FilterRemovedNotification, {
|
if (removed > 0) {
|
||||||
description: await translate(view.string.FilterRemoved, { count: oldSize - (filter.value.length ?? 0) })
|
onChange(filter)
|
||||||
})
|
addNotification(await translate(view.string.FilterUpdated, {}), filter.key.label, FilterRemovedNotification, {
|
||||||
|
description: await translate(view.string.FilterRemoved, { count: removed })
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (isStatus) {
|
if (isStatus) {
|
||||||
values = groupValues(values as Status[])
|
values = groupValues(values as Status[])
|
||||||
|
Loading…
Reference in New Issue
Block a user