soft comments in activity

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-10-24 22:43:45 +02:00
parent 441bf232aa
commit f90314b02f
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -17,6 +17,7 @@
<script lang="ts">
import type { IntlString, Asset } from '@anticrm/platform'
import type { Doc } from '@anticrm/core'
import { SortingOrder } from '@anticrm/core'
import { getClient, createQuery, Backlink } from '@anticrm/presentation'
import type { AnySvelteComponent } from '@anticrm/ui'
import { ReferenceInput } from '@anticrm/text-editor'
@ -38,7 +39,7 @@
const client = getClient()
const query = createQuery()
$: query.query(chunter.class.Comment, { attachedTo: object._id }, result => { comments = result })
$: query.query(chunter.class.Comment, { attachedTo: object._id }, result => { comments = result }, { sort: { modifiedOn: SortingOrder.Descending } })
function onMessage(event: CustomEvent) {
client.createDoc(chunter.class.Comment, object.space, {