mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-15 12:55:59 +00:00
Fixes TabList: params for Label (#3093)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
3f3abd3e24
commit
c08b711782
@ -78,7 +78,7 @@
|
||||
{#if item.label}
|
||||
{item.label}
|
||||
{:else if item.labelIntl}
|
||||
<Label label={item.labelIntl} />
|
||||
<Label label={item.labelIntl} params={item.labelParams} />
|
||||
{/if}
|
||||
</span>
|
||||
{/if}
|
||||
|
@ -105,6 +105,7 @@ export interface TabItem {
|
||||
id: string
|
||||
label?: string
|
||||
labelIntl?: IntlString
|
||||
labelParams?: Record<string, any>
|
||||
icon?: Asset | AnySvelteComponent
|
||||
color?: string
|
||||
tooltip?: IntlString
|
||||
|
@ -10,6 +10,7 @@
|
||||
return {
|
||||
id: c[0],
|
||||
labelIntl: c[1],
|
||||
labelParams: c[2],
|
||||
action: () => onChange(c[0])
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user