Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-04-11 22:32:27 +06:00 committed by GitHub
parent 6aa026dd90
commit d4eeeb38ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -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 {}

View File

@ -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'
}
)
}