mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
Fixed readonly param for employees (#2730)
Signed-off-by: Oleg Solodkov <oleg.solodkov@ezthera.com>
This commit is contained in:
parent
b0b389d208
commit
3748a1465b
@ -28,6 +28,7 @@
|
||||
export let size: ButtonSize = 'small'
|
||||
export let justify: 'left' | 'center' = 'center'
|
||||
export let width: string | undefined = undefined
|
||||
export let readonly = false
|
||||
|
||||
$: _class = type?.to ?? contact.class.Employee
|
||||
|
||||
@ -44,6 +45,7 @@
|
||||
{size}
|
||||
{justify}
|
||||
{width}
|
||||
{readonly}
|
||||
allowDeselect
|
||||
titleDeselect={contact.string.Cancel}
|
||||
bind:value
|
||||
|
@ -94,7 +94,7 @@
|
||||
{/if}
|
||||
{#if keys.length}
|
||||
<div class="collapsed-container" class:collapsed>
|
||||
<AttributesBar {_class} {object} keys={keys.map((p) => p.key)} {readonly} {draft} on:update />
|
||||
<AttributesBar {_class} {object} {keys} {readonly} {draft} on:update />
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user