UBERF-4554 Show inactive users in collaborators (#4281)

Signed-off-by: Sergey Voytsehovich <syargreg@gmail.com>
This commit is contained in:
Sergey Voytsehovich 2023-12-28 12:12:39 +03:00 committed by GitHub
parent 5ddcaf4051
commit d4473ce717
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -75,12 +75,9 @@
$: docQuery = $: docQuery =
excluded.length > 0 excluded.length > 0
? { ? {
active: true,
_id: { $nin: excluded.map((p) => (p as PersonAccount).person as Ref<Employee>) } _id: { $nin: excluded.map((p) => (p as PersonAccount).person as Ref<Employee>) }
} }
: { : {}
active: true
}
</script> </script>
<UserBoxList <UserBoxList

View File

@ -67,7 +67,9 @@
filter: (it: Doc) => { filter: (it: Doc) => {
const h = client.getHierarchy() const h = client.getHierarchy()
if (h.hasMixin(it, contact.mixin.Employee)) { 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 readonly