mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-24 12:06:57 +03:00
Config members fix (#2025)
This commit is contained in:
parent
bf1444295a
commit
9b300d5c87
@ -26,7 +26,7 @@ import type {
|
||||
Persons,
|
||||
Status
|
||||
} from '@anticrm/contact'
|
||||
import type { Class, Domain, FindOptions, Lookup, Ref, Timestamp } from '@anticrm/core'
|
||||
import type { Class, Domain, Ref, Timestamp } from '@anticrm/core'
|
||||
import { DOMAIN_MODEL, IndexKind } from '@anticrm/core'
|
||||
import { Builder, Collection, Index, Model, Prop, TypeRef, TypeString, TypeTimestamp, UX } from '@anticrm/model'
|
||||
import attachment from '@anticrm/model-attachment'
|
||||
@ -174,16 +174,6 @@ export function createModel (builder: Builder): void {
|
||||
contact.app.Contacts
|
||||
)
|
||||
|
||||
const contactLookup: Lookup<Contact> = {
|
||||
_id: {
|
||||
channels: contact.class.Channel
|
||||
}
|
||||
}
|
||||
const memberOptions: FindOptions<Member> = {
|
||||
lookup: {
|
||||
contact: [contact.class.Contact, contactLookup]
|
||||
}
|
||||
}
|
||||
builder.createDoc(
|
||||
view.class.Viewlet,
|
||||
core.space.Model,
|
||||
@ -191,8 +181,7 @@ export function createModel (builder: Builder): void {
|
||||
attachTo: contact.class.Member,
|
||||
descriptor: view.viewlet.Table,
|
||||
config: ['', '$lookup.contact.$lookup.channels', 'modifiedOn'],
|
||||
options: memberOptions,
|
||||
hiddenKeys: ['name']
|
||||
hiddenKeys: ['name', 'contact']
|
||||
},
|
||||
contact.viewlet.TableMember
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user