UBERF-6486 Lock document content (#5799)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2024-06-13 13:27:59 +07:00
committed by GitHub
parent bf969fb27d
commit a409cfafb3
13 changed files with 142 additions and 9 deletions
+3 -1
View File
@@ -58,7 +58,9 @@ export const documentPlugin = plugin(documentId, {
References: '' as Asset,
History: '' as Asset,
Star: '' as Asset,
Starred: '' as Asset
Starred: '' as Asset,
Lock: '' as Asset,
Unlock: '' as Asset
},
app: {
Documents: '' as Ref<Doc>
+3 -1
View File
@@ -14,7 +14,7 @@
//
import { Attachment } from '@hcengineering/attachment'
import { AttachedDoc, Class, CollaborativeDoc, Ref, TypedSpace } from '@hcengineering/core'
import { Account, AttachedDoc, Class, CollaborativeDoc, Ref, TypedSpace } from '@hcengineering/core'
import { Preference } from '@hcengineering/preference'
import { IconProps } from '@hcengineering/view'
@@ -28,6 +28,8 @@ export interface Document extends AttachedDoc<Document, 'children', Teamspace>,
name: string
content: CollaborativeDoc
lockedBy?: Ref<Account> | null
snapshots?: number
attachments?: number
children?: number