mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 13:17:45 +02:00
UBERF-4725 Migrate collaborative content (#5717)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
@@ -15,11 +15,13 @@
|
||||
<script lang="ts">
|
||||
import attachment from '@hcengineering/attachment'
|
||||
import { AttachmentDocList } from '@hcengineering/attachment-resources'
|
||||
import { ChatMessagePopup } from '@hcengineering/chunter-resources'
|
||||
import { Ref } from '@hcengineering/core'
|
||||
import { IconForward, MessageViewer, createQuery, getClient } from '@hcengineering/presentation'
|
||||
import { IconForward, createQuery, getClient } from '@hcengineering/presentation'
|
||||
import { CollaborativeTextEditor } from '@hcengineering/text-editor-resources'
|
||||
import { Issue } from '@hcengineering/tracker'
|
||||
import { Label, Scroller, resizeObserver } from '@hcengineering/ui'
|
||||
import { ChatMessagePopup } from '@hcengineering/chunter-resources'
|
||||
import { getCollaborationUser } from '@hcengineering/view-resources'
|
||||
|
||||
import tracker from '../../plugin'
|
||||
import AssigneeEditor from './AssigneeEditor.svelte'
|
||||
@@ -34,6 +36,8 @@
|
||||
const client = getClient()
|
||||
const issueQuery = createQuery()
|
||||
|
||||
const user = getCollaborationUser()
|
||||
|
||||
$: issueQuery.query(
|
||||
object._class,
|
||||
{ _id: object._id },
|
||||
@@ -91,7 +95,9 @@
|
||||
{#if issue.description}
|
||||
<div class="description-container" class:masked={cHeight > limit} style:max-height={`${limit}px`}>
|
||||
<div class="description-content" use:resizeObserver={(element) => (cHeight = element.clientHeight)}>
|
||||
<MessageViewer message={issue.description} />
|
||||
{#key issue._id}
|
||||
<CollaborativeTextEditor collaborativeDoc={issue.description} field="description" {user} readonly />
|
||||
{/key}
|
||||
</div>
|
||||
</div>
|
||||
{:else}
|
||||
|
||||
Reference in New Issue
Block a user