Fixed readonly param for employees (#2730)

Signed-off-by: Oleg Solodkov <oleg.solodkov@ezthera.com>
This commit is contained in:
sol-0 2023-03-14 12:10:01 +07:00 committed by GitHub
parent b0b389d208
commit 3748a1465b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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}