mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
parent
6aa026dd90
commit
d4eeeb38ae
@ -16,17 +16,17 @@
|
||||
|
||||
import { Domain, DOMAIN_MODEL, IndexKind, Ref } from '@hcengineering/core'
|
||||
import { Builder, Index, Model, Prop, TypeString, UX } from '@hcengineering/model'
|
||||
import core, { DOMAIN_SPACE, TDoc, TSpace } from '@hcengineering/model-core'
|
||||
import core, { TDoc, TSpace } from '@hcengineering/model-core'
|
||||
import textEditor from '@hcengineering/model-text-editor'
|
||||
import view, { createAction } from '@hcengineering/model-view'
|
||||
import { IntlString, Resource } from '@hcengineering/platform'
|
||||
import setting from '@hcengineering/setting'
|
||||
import type {
|
||||
MessageTemplate,
|
||||
TemplateCategory,
|
||||
TemplateField,
|
||||
TemplateFieldCategory,
|
||||
TemplateFieldFunc,
|
||||
TemplateCategory
|
||||
TemplateFieldFunc
|
||||
} from '@hcengineering/templates'
|
||||
import templates from './plugin'
|
||||
|
||||
@ -43,7 +43,7 @@ export class TMessageTemplate extends TDoc implements MessageTemplate {
|
||||
message!: string
|
||||
}
|
||||
|
||||
@Model(templates.class.TemplateCategory, core.class.Space, DOMAIN_SPACE)
|
||||
@Model(templates.class.TemplateCategory, core.class.Space)
|
||||
@UX(templates.string.TemplateCategory)
|
||||
export class TTemplateCategory extends TSpace implements TemplateCategory {}
|
||||
|
||||
|
@ -70,9 +70,9 @@ async function changeClass (client: MigrationClient): Promise<void> {
|
||||
},
|
||||
{
|
||||
objectClass: templates.class.TemplateCategory,
|
||||
'attirbutes.private': false,
|
||||
'attirbutes.name': 'Public templates',
|
||||
'attirbutes.description': 'Space for public templates'
|
||||
'attributes.private': false,
|
||||
'attributes.name': 'Public templates',
|
||||
'attributes.description': 'Space for public templates'
|
||||
}
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user