Skip to content

Commit

Permalink
EQMS-1323 Allow todos in controlled documents (#7486)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Onnikov <[email protected]>
  • Loading branch information
aonnikov authored Dec 17, 2024
1 parent d811377 commit 45e84f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/controlled-documents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 4 additions & 0 deletions models/controlled-documents/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 45e84f7

Please sign in to comment.