mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
UBERF-4554 Show inactive users in collaborators (#4281)
Signed-off-by: Sergey Voytsehovich <syargreg@gmail.com>
This commit is contained in:
parent
5ddcaf4051
commit
d4473ce717
@ -75,12 +75,9 @@
|
||||
$: docQuery =
|
||||
excluded.length > 0
|
||||
? {
|
||||
active: true,
|
||||
_id: { $nin: excluded.map((p) => (p as PersonAccount).person as Ref<Employee>) }
|
||||
}
|
||||
: {
|
||||
active: true
|
||||
}
|
||||
: {}
|
||||
</script>
|
||||
|
||||
<UserBoxList
|
||||
|
@ -67,7 +67,9 @@
|
||||
filter: (it: Doc) => {
|
||||
const h = client.getHierarchy()
|
||||
if (h.hasMixin(it, contact.mixin.Employee)) {
|
||||
return h.as(it, contact.mixin.Employee).active
|
||||
const isActive = h.as(it, contact.mixin.Employee).active
|
||||
const isSelected = items.some((selectedItem) => selectedItem === it._id)
|
||||
return isActive || isSelected
|
||||
}
|
||||
},
|
||||
readonly
|
||||
|
Loading…
Reference in New Issue
Block a user