mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 21:27:46 +02:00
Use tags for card labels (#1888)
This commit is contained in:
@@ -60,6 +60,7 @@ import {
|
||||
WonStateTemplate
|
||||
} from '@anticrm/task'
|
||||
import { AnyComponent } from '@anticrm/ui'
|
||||
import tags from '@anticrm/tags'
|
||||
import task from './plugin'
|
||||
|
||||
export { createKanbanTemplate, createSequence, taskOperation } from './migration'
|
||||
@@ -123,6 +124,9 @@ export class TTask extends TAttachedDoc implements Task {
|
||||
|
||||
@Prop(Collection(task.class.TodoItem), task.string.Todos)
|
||||
todoItems!: number
|
||||
|
||||
@Prop(Collection(tags.class.TagReference, task.string.TaskLabels), task.string.TaskLabels)
|
||||
labels!: number
|
||||
}
|
||||
|
||||
@Model(task.class.TodoItem, core.class.AttachedDoc, DOMAIN_TASK, [task.interface.DocWithRank])
|
||||
@@ -175,10 +179,6 @@ export class TIssue extends TTask implements Issue {
|
||||
@Prop(Collection(attachment.class.Attachment), attachment.string.Attachments, undefined, attachment.string.Files)
|
||||
attachments!: number
|
||||
|
||||
@Prop(TypeString(), task.string.TaskLabels)
|
||||
@Index(IndexKind.FullText)
|
||||
labels!: string
|
||||
|
||||
@Prop(TypeRef(contact.class.Employee), task.string.TaskAssignee)
|
||||
declare assignee: Ref<Employee> | null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user