Disable when noValue

This commit is contained in:
Adria Navarro 2023-10-03 13:25:56 +02:00
parent 4577ba8239
commit 2367ceeb87
2 changed files with 6 additions and 1 deletions

View File

@ -288,7 +288,10 @@
bind:value={filter.value} bind:value={filter.value}
/> />
{:else if filter.type === FieldType.BB_REFERENCE} {:else if filter.type === FieldType.BB_REFERENCE}
<FilterUsers bind:value={filter.value} /> <FilterUsers
bind:value={filter.value}
disabled={filter.noValue}
/>
{:else} {:else}
<DrawerBindableInput disabled /> <DrawerBindableInput disabled />
{/if} {/if}

View File

@ -5,6 +5,7 @@
import { API } from "api" import { API } from "api"
export let value = null export let value = null
export let disabled
export let multiple = false export let multiple = false
$: fetch = fetchData({ $: fetch = fetchData({
@ -38,4 +39,5 @@
{options} {options}
getOptionLabel={option => option.email} getOptionLabel={option => option.email}
getOptionValue={option => option._id} getOptionValue={option => option._id}
{disabled}
/> />