Display card parent (#10005)

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2025-10-02 21:15:29 +07:00
committed by GitHub
parent ddc6a021b3
commit 082e36e796
2 changed files with 10 additions and 3 deletions
@@ -33,7 +33,7 @@
} from '@hcengineering/ui'
import presence from '@hcengineering/presence'
import { createQuery, createNotificationContextsQuery, getClient } from '@hcengineering/presentation'
import { ParentsNavigator, showMenu } from '@hcengineering/view-resources'
import { showMenu } from '@hcengineering/view-resources'
import view from '@hcengineering/view'
import { NotificationContext } from '@hcengineering/communication-types'
@@ -41,6 +41,7 @@
import CardIcon from './CardIcon.svelte'
import TagsEditor from './TagsEditor.svelte'
import EditCardNewContent from './EditCardNewContent.svelte'
import ParentNamesPresenter from './ParentNamesPresenter.svelte'
import { openCardInSidebar } from '../utils'
import { afterUpdate } from 'svelte'
@@ -172,7 +173,7 @@
<svelte:fragment slot="title">
{#if showParents}
<ParentsNavigator element={doc} maxWidth={'10rem'} />
<ParentNamesPresenter value={doc} maxWidth={'12rem'} />
{/if}
<div class="title flex-row-center">
{#if !_readonly}
@@ -116,7 +116,13 @@ export async function attachCardToMessage (
rank: makeRank(lastOne?.rank, undefined),
content: '' as MarkupBlobRef,
blobs: {},
parentInfo: []
parentInfo: [
{
_id: parentCard._id,
_class: parentCard._class,
title: parentCard.title
}
]
},
type
)