Hide counter for single references

This commit is contained in:
Adria Navarro 2024-04-22 17:45:56 +02:00
parent a794fb406d
commit 20a39f53c6
3 changed files with 5 additions and 1 deletions

View File

@ -4,6 +4,7 @@
import { FieldSubtype, RelationshipType } from "@budibase/types"
export let api
export let hideCounter = false
const { API } = getContext("grid")
const { subtype } = $$props.schema
@ -45,4 +46,5 @@
{schema}
{searchFunction}
primaryDisplay={"email"}
{hideCounter}
/>

View File

@ -18,4 +18,5 @@
{...$$restProps}
value={arrayValue}
onChange={onValueChange}
hideCounter={true}
/>

View File

@ -17,6 +17,7 @@
export let contentLines = 1
export let searchFunction = API.searchTable
export let primaryDisplay
export let hideCounter = false
const color = getColor(0)
@ -276,7 +277,7 @@
</div>
{/if}
</div>
{#if value?.length}
{#if !hideCounter && value?.length}
<div class="count">
{value?.length || 0}
</div>