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