mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
Add Contact info presenter (#1985)
* Add Contact info presenter Signed-off-by: Anna No <anna.no@xored.com> * Update error message Signed-off-by: Anna No <anna.no@xored.com> * Add Contact info presenter Signed-off-by: Anna No <anna.no@xored.com> * fix formatting Signed-off-by: Anna No <anna.no@xored.com>
This commit is contained in:
parent
85220551aa
commit
27ef52a9c9
@ -201,6 +201,10 @@ export function createModel (builder: Builder): void {
|
||||
editor: contact.component.PersonEditor
|
||||
})
|
||||
|
||||
builder.mixin(contact.class.Channel, core.class.Class, view.mixin.AttributePresenter, {
|
||||
presenter: contact.component.ChannelsPresenter
|
||||
})
|
||||
|
||||
builder.mixin(contact.class.Channel, core.class.Class, view.mixin.CollectionPresenter, {
|
||||
presenter: contact.component.ChannelsPresenter
|
||||
})
|
||||
|
@ -61,7 +61,9 @@ export async function getObjectPresenter (
|
||||
mixinClazz = hierarchy.getClass(mixinClazz.extends)
|
||||
}
|
||||
if (presenterMixin.presenter === undefined) {
|
||||
throw new Error('object presenter not found for ' + JSON.stringify(preserveKey))
|
||||
throw new Error(
|
||||
`object presenter not found for class=${_class}, mixin=${mixin}, preserve key ${JSON.stringify(preserveKey)}`
|
||||
)
|
||||
}
|
||||
const presenter = await getResource(presenterMixin.presenter)
|
||||
const key = preserveKey.sortingKey ?? preserveKey.key
|
||||
|
Loading…
Reference in New Issue
Block a user