mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-30 11:49:42 +02:00
Display card parent (#10005)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user