UBERF-6189 Fix document inbox issues (#5072)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2024-03-27 17:28:43 +07:00
committed by GitHub
parent 183239f2fe
commit 7b4db2e94d
5 changed files with 22 additions and 4 deletions
+2 -1
View File
@@ -13,7 +13,7 @@
// limitations under the License.
//
import { type Doc } from '@hcengineering/core'
import { type Client, type Doc, type Ref } from '@hcengineering/core'
import document, { type Teamspace, documentId } from '@hcengineering/document'
import { type IntlString, type Resource, mergeIds } from '@hcengineering/platform'
import { type AnyComponent, type Location } from '@hcengineering/ui'
@@ -27,6 +27,7 @@ export default mergeIds(documentId, document, {
CreateTeamspace: '' as AnyComponent
},
function: {
DocumentTitleProvider: '' as Resource<<T extends Doc>(client: Client, ref: Ref<T>, doc?: T) => Promise<string>>,
GetDocumentLink: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<string>>,
GetObjectLinkFragment: '' as Resource<(doc: Doc, props: Record<string, any>) => Promise<Location>>,
IsTeamspaceVisible: '' as Resource<(space: Teamspace) => Promise<boolean>>