mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-05 15:24:22 +00: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 =
|
$: 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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user