User filter

This commit is contained in:
Adria Navarro 2024-04-11 16:05:03 +02:00
parent 2fcdf2602e
commit 7cf52bff02
3 changed files with 10 additions and 1 deletions

View File

@ -6,7 +6,6 @@
import { FilterBuilder } from "@budibase/frontend-core"
import { createEventDispatcher, onMount } from "svelte"
// import FilterUsers from "./FilterUsers.svelte"
export let schemaFields
export let filters = []

View File

@ -15,6 +15,7 @@
import { generate } from "shortid"
import { LuceneUtils, Constants } from "@budibase/frontend-core"
import { getContext } from "svelte"
import FilterUsers from "./FilterUsers.svelte"
const { OperatorOptions } = Constants
@ -273,6 +274,15 @@
timeOnly={getSchema(filter)?.timeOnly}
bind:value={filter.value}
/>
{:else if filter.type === FieldType.BB_REFERENCE}
<FilterUsers
bind:value={filter.value}
multiselect={[
OperatorOptions.In.value,
OperatorOptions.ContainsAny.value,
].includes(filter.operator)}
disabled={filter.noValue}
/>
{:else}
<Input disabled />
{/if}