Disable when noValue
This commit is contained in:
parent
4577ba8239
commit
2367ceeb87
|
@ -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}
|
||||||
|
|
|
@ -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}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue