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