mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 04:08:19 +00: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 size: ButtonSize = 'small'
|
||||||
export let justify: 'left' | 'center' = 'center'
|
export let justify: 'left' | 'center' = 'center'
|
||||||
export let width: string | undefined = undefined
|
export let width: string | undefined = undefined
|
||||||
|
export let readonly = false
|
||||||
|
|
||||||
$: _class = type?.to ?? contact.class.Employee
|
$: _class = type?.to ?? contact.class.Employee
|
||||||
|
|
||||||
@ -44,6 +45,7 @@
|
|||||||
{size}
|
{size}
|
||||||
{justify}
|
{justify}
|
||||||
{width}
|
{width}
|
||||||
|
{readonly}
|
||||||
allowDeselect
|
allowDeselect
|
||||||
titleDeselect={contact.string.Cancel}
|
titleDeselect={contact.string.Cancel}
|
||||||
bind:value
|
bind:value
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{#if keys.length}
|
{#if keys.length}
|
||||||
<div class="collapsed-container" class:collapsed>
|
<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>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user