mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-26 11:34:58 +02:00
UBERF-9502: Account uuids in models (#8125)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
+3
-3
@@ -16,8 +16,8 @@
|
||||
<script lang="ts">
|
||||
import documents, { Document } from '@hcengineering/controlled-documents'
|
||||
import { Employee } from '@hcengineering/contact'
|
||||
import { EmployeeBox, EmployeePresenter, personRefByPersonIdStore } from '@hcengineering/contact-resources'
|
||||
import core, { Ref, Space } from '@hcengineering/core'
|
||||
import { EmployeeBox, EmployeePresenter, personRefByAccountUuidStore } from '@hcengineering/contact-resources'
|
||||
import core, { Ref, Space, notEmpty } from '@hcengineering/core'
|
||||
import presentation, { createQuery, getClient } from '@hcengineering/presentation'
|
||||
import { Button, Icon, Label } from '@hcengineering/ui'
|
||||
import view from '@hcengineering/view'
|
||||
@@ -60,7 +60,7 @@
|
||||
$: isOwner = isDocOwner(object)
|
||||
|
||||
$: members = space?.members ?? []
|
||||
$: employees = members.map((m) => $personRefByPersonIdStore.get(m) as Ref<Employee>).filter((p) => p !== undefined)
|
||||
$: employees = members.map((m) => $personRefByAccountUuidStore.get(m) as Ref<Employee>).filter(notEmpty)
|
||||
|
||||
$: docQuery = space?.private ?? false ? { active: true, _id: { $in: employees } } : { active: true }
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user