UBER-769 Implement backlinks in server plugin (#3626)

Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2023-08-24 22:53:18 +07:00
committed by GitHub
parent 821ed6cd7b
commit 2c585b2ecd
41 changed files with 813 additions and 132 deletions
@@ -13,7 +13,7 @@
// limitations under the License.
-->
<script lang="ts">
import { Class, Doc, Markup, Ref, updateAttribute } from '@hcengineering/core'
import { Class, Doc, Ref, updateAttribute } from '@hcengineering/core'
import { IntlString } from '@hcengineering/platform'
import { createQuery, getAttribute, getClient, KeyedAttribute } from '@hcengineering/presentation'
@@ -27,7 +27,6 @@
export let key: KeyedAttribute
export let placeholder: IntlString
export let focusIndex = -1
export let updateBacklinks: ((doc: Doc, description: Markup) => void) | undefined = undefined
let _id: Ref<Doc> | undefined = undefined
let _class: Ref<Class<Doc>> | undefined = undefined
const client = getClient()
@@ -69,7 +68,6 @@
setTimeout(() => {
dispatch('saved', false)
}, 2500)
updateBacklinks?.(object, description)
}
await descriptionBox.createAttachments()