mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-24 09:16:43 +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">
|
<script lang="ts">
|
||||||
import type { IntlString, Asset } from '@anticrm/platform'
|
import type { IntlString, Asset } from '@anticrm/platform'
|
||||||
import type { Doc } from '@anticrm/core'
|
import type { Doc } from '@anticrm/core'
|
||||||
|
import { SortingOrder } from '@anticrm/core'
|
||||||
import { getClient, createQuery, Backlink } from '@anticrm/presentation'
|
import { getClient, createQuery, Backlink } from '@anticrm/presentation'
|
||||||
import type { AnySvelteComponent } from '@anticrm/ui'
|
import type { AnySvelteComponent } from '@anticrm/ui'
|
||||||
import { ReferenceInput } from '@anticrm/text-editor'
|
import { ReferenceInput } from '@anticrm/text-editor'
|
||||||
@ -38,7 +39,7 @@
|
|||||||
|
|
||||||
const client = getClient()
|
const client = getClient()
|
||||||
const query = createQuery()
|
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) {
|
function onMessage(event: CustomEvent) {
|
||||||
client.createDoc(chunter.class.Comment, object.space, {
|
client.createDoc(chunter.class.Comment, object.space, {
|
||||||
|
Loading…
Reference in New Issue
Block a user