EQMS-1323 Allow todos in controlled documents (#7486)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2024-12-17 14:44:43 +07:00
committed by GitHub
parent d81137729e
commit 45e84f730f
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -57,6 +57,7 @@
"@hcengineering/model-notification": "^0.6.0",
"@hcengineering/chunter": "^0.6.20",
"@hcengineering/text-editor": "^0.6.0",
"@hcengineering/collaboration": "^0.6.0"
"@hcengineering/collaboration": "^0.6.0",
"@hcengineering/time": "^0.6.0"
}
}
+4
View File
@@ -90,6 +90,7 @@ import core, {
} from '@hcengineering/model-core'
import { getEmbeddedLabel } from '@hcengineering/platform'
import tags, { type TagReference } from '@hcengineering/tags'
import time, { type ToDo } from '@hcengineering/time'
import training, { type Training, type TrainingRequest } from '@hcengineering/training'
import documents from './plugin'
@@ -397,6 +398,9 @@ export class TControlledDocument extends THierarchyDocument implements Controlle
@Prop(TypeRef(documents.class.Document), documents.string.ChangeControl)
@Hidden()
changeControl!: Ref<ChangeControl>
@Prop(Collection(time.class.ToDo), getEmbeddedLabel('Action Items'))
todos?: CollectionSize<ToDo>
}
@Model(documents.class.ChangeControl, core.class.Doc, DOMAIN_DOCUMENTS)