mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-25 11:05:07 +02:00
29 lines
646 B
Svelte
29 lines
646 B
Svelte
<script lang="ts">
|
|
import board, { Card } from '@hcengineering/board'
|
|
import core, { Space } from '@hcengineering/core'
|
|
import { createQuery } from '@hcengineering/presentation'
|
|
import { Label } from '@hcengineering/ui'
|
|
|
|
export let value: Card
|
|
export let withoutSpace: boolean
|
|
|
|
let space: Space | undefined = undefined
|
|
|
|
const query = createQuery()
|
|
|
|
$: query.query(core.class.Space, { _id: value.space }, (res) => {
|
|
space = res[0]
|
|
})
|
|
</script>
|
|
|
|
{#if !withoutSpace}
|
|
<div>
|
|
<Label label={board.string.ConfigLabel} />
|
|
/
|
|
{space?.name}
|
|
</div>
|
|
{/if}
|
|
<div class="flex-row-center flex-gap-1">
|
|
{value.title}
|
|
</div>
|