mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 20:45:00 +02:00
UBERF-7239: Support short/custom links in inbox/chat/planner (#5815)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -26,6 +26,10 @@ export async function documentHTMLPresenter (doc: Doc, control: TriggerControl):
|
||||
return `<a href="${link}">${document.name}</a>`
|
||||
}
|
||||
|
||||
export async function documentLinkIdProvider (doc: Document): Promise<string> {
|
||||
return getDocumentId(doc)
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
@@ -38,6 +42,7 @@ export async function documentTextPresenter (doc: Doc): Promise<string> {
|
||||
export default async () => ({
|
||||
function: {
|
||||
DocumentHTMLPresenter: documentHTMLPresenter,
|
||||
DocumentTextPresenter: documentTextPresenter
|
||||
DocumentTextPresenter: documentTextPresenter,
|
||||
DocumentLinkIdProvider: documentLinkIdProvider
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user