mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-24 04:17:50 +00:00
soft comments in activity
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
441bf232aa
commit
f90314b02f
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user