From 082e36e796bed9db770121b7e31fcd2f28b7bebd Mon Sep 17 00:00:00 2001 From: Artyom Savchenko Date: Thu, 2 Oct 2025 21:15:29 +0700 Subject: [PATCH] Display card parent (#10005) Signed-off-by: Artem Savchenko --- plugins/card-resources/src/components/EditCardNew.svelte | 5 +++-- plugins/communication-resources/src/actions.ts | 8 +++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/plugins/card-resources/src/components/EditCardNew.svelte b/plugins/card-resources/src/components/EditCardNew.svelte index 36df9669dd..49dc2eb516 100644 --- a/plugins/card-resources/src/components/EditCardNew.svelte +++ b/plugins/card-resources/src/components/EditCardNew.svelte @@ -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 @@ {#if showParents} - + {/if}
{#if !_readonly} diff --git a/plugins/communication-resources/src/actions.ts b/plugins/communication-resources/src/actions.ts index b5859651a2..e69140a349 100644 --- a/plugins/communication-resources/src/actions.ts +++ b/plugins/communication-resources/src/actions.ts @@ -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 )