mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-01 21:47:00 +00:00
23 lines
624 B
Svelte
23 lines
624 B
Svelte
<!--
|
|
Copyright @ 2024 Hardcore Engineering Inc.
|
|
-->
|
|
|
|
<script lang="ts">
|
|
import type { TrainingRequest } from '@hcengineering/training'
|
|
import type { WithLookup } from '@hcengineering/core'
|
|
import { DocNavLink } from '@hcengineering/view-resources'
|
|
|
|
export let value: WithLookup<TrainingRequest>
|
|
export let disabled: boolean = false
|
|
</script>
|
|
|
|
{#if value.$lookup?.attachedTo}
|
|
<div class="content-halfcontent-color">
|
|
<DocNavLink object={value} {disabled} noOverflow accent>
|
|
<span class="whitespace-nowrap fs-bold">
|
|
{value.$lookup.attachedTo.code}
|
|
</span>
|
|
</DocNavLink>
|
|
</div>
|
|
{/if}
|