mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-23 05:53:09 +03:00
Add custom label to Attachments component (#2872)
Signed-off-by: muhtimur <timur.mukhamedishin@xored.com>
This commit is contained in:
parent
cbd6bbdb92
commit
083f34350a
@ -16,6 +16,7 @@
|
||||
<script lang="ts">
|
||||
import { Attachment } from '@hcengineering/attachment'
|
||||
import { Class, Data, Doc, DocumentQuery, Ref, Space } from '@hcengineering/core'
|
||||
import { IntlString } from '@hcengineering/platform'
|
||||
import { Icon, Label, resizeObserver, Scroller, Spinner } from '@hcengineering/ui'
|
||||
import view, { BuildModelKey } from '@hcengineering/view'
|
||||
import { Table } from '@hcengineering/view-resources'
|
||||
@ -34,6 +35,7 @@
|
||||
export let extraConfig: (BuildModelKey | string)[] = []
|
||||
export let readonly = false
|
||||
export let showHeader = true
|
||||
export let label: IntlString = attachment.string.Attachments
|
||||
export let attachments: number | undefined = undefined
|
||||
|
||||
let inputFile: HTMLInputElement
|
||||
@ -51,7 +53,7 @@
|
||||
</div>
|
||||
<span class="antiSection-header__title">
|
||||
{#if showHeader}
|
||||
<Label label={attachment.string.Attachments} />
|
||||
<Label {label} />
|
||||
{/if}
|
||||
</span>
|
||||
<div class="buttons-group small-gap">
|
||||
|
Loading…
Reference in New Issue
Block a user