Hide counter for single references
This commit is contained in:
parent
a794fb406d
commit
20a39f53c6
|
@ -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}
|
||||
/>
|
||||
|
|
|
@ -18,4 +18,5 @@
|
|||
{...$$restProps}
|
||||
value={arrayValue}
|
||||
onChange={onValueChange}
|
||||
hideCounter={true}
|
||||
/>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue