diff --git a/models/controlled-documents/package.json b/models/controlled-documents/package.json index d3e6c7660a..548cec53fc 100644 --- a/models/controlled-documents/package.json +++ b/models/controlled-documents/package.json @@ -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" } } diff --git a/models/controlled-documents/src/types.ts b/models/controlled-documents/src/types.ts index 4f8dc62038..16fa68a429 100644 --- a/models/controlled-documents/src/types.ts +++ b/models/controlled-documents/src/types.ts @@ -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 + + @Prop(Collection(time.class.ToDo), getEmbeddedLabel('Action Items')) + todos?: CollectionSize } @Model(documents.class.ChangeControl, core.class.Doc, DOMAIN_DOCUMENTS)