Fix templates (#3018)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-04-19 22:16:10 +06:00 committed by GitHub
parent c917f9c59a
commit 5b6c9d0342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -33,6 +33,7 @@
"@hcengineering/model-contact": "^0.6.1", "@hcengineering/model-contact": "^0.6.1",
"@hcengineering/view": "^0.6.4", "@hcengineering/view": "^0.6.4",
"@hcengineering/model-view": "^0.6.0", "@hcengineering/model-view": "^0.6.0",
"@hcengineering/model-tracker": "^0.6.0",
"@hcengineering/templates": "^0.6.2", "@hcengineering/templates": "^0.6.2",
"@hcengineering/templates-resources": "^0.6.0", "@hcengineering/templates-resources": "^0.6.0",
"@hcengineering/setting": "^0.6.5", "@hcengineering/setting": "^0.6.5",

View File

@ -29,6 +29,7 @@ import type {
TemplateFieldFunc TemplateFieldFunc
} from '@hcengineering/templates' } from '@hcengineering/templates'
import templates from './plugin' import templates from './plugin'
import tracker from '@hcengineering/model-tracker'
export const DOMAIN_TEMPLATES = 'templates' as Domain export const DOMAIN_TEMPLATES = 'templates' as Domain
@ -159,6 +160,10 @@ export function createModel (builder: Builder): void {
}, },
templates.action.Move templates.action.Move
) )
builder.mixin(templates.class.MessageTemplate, core.class.Class, view.mixin.IgnoreActions, {
actions: [view.action.Open, tracker.action.NewRelatedIssue]
})
} }
export { templatesOperation } from './migration' export { templatesOperation } from './migration'

View File

@ -148,7 +148,7 @@
<div class="ac-header__title"><Label label={templatesPlugin.string.Templates} /></div> <div class="ac-header__title"><Label label={templatesPlugin.string.Templates} /></div>
</div> </div>
<div class="ac-body columns"> <div class="ac-body columns clear-mins">
<div class="ac-column"> <div class="ac-column">
<div id="create-template" class="flex-between trans-title mb-3"> <div id="create-template" class="flex-between trans-title mb-3">
<Button <Button