Files
huly-platform/plugins/time-resources/src/components/presenters/CardPresenter.svelte
T
2024-02-29 01:53:09 +07:00

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>