Hide counter for single references
This commit is contained in:
parent
a794fb406d
commit
20a39f53c6
|
@ -4,6 +4,7 @@
|
||||||
import { FieldSubtype, RelationshipType } from "@budibase/types"
|
import { FieldSubtype, RelationshipType } from "@budibase/types"
|
||||||
|
|
||||||
export let api
|
export let api
|
||||||
|
export let hideCounter = false
|
||||||
|
|
||||||
const { API } = getContext("grid")
|
const { API } = getContext("grid")
|
||||||
const { subtype } = $$props.schema
|
const { subtype } = $$props.schema
|
||||||
|
@ -45,4 +46,5 @@
|
||||||
{schema}
|
{schema}
|
||||||
{searchFunction}
|
{searchFunction}
|
||||||
primaryDisplay={"email"}
|
primaryDisplay={"email"}
|
||||||
|
{hideCounter}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -18,4 +18,5 @@
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
value={arrayValue}
|
value={arrayValue}
|
||||||
onChange={onValueChange}
|
onChange={onValueChange}
|
||||||
|
hideCounter={true}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
export let contentLines = 1
|
export let contentLines = 1
|
||||||
export let searchFunction = API.searchTable
|
export let searchFunction = API.searchTable
|
||||||
export let primaryDisplay
|
export let primaryDisplay
|
||||||
|
export let hideCounter = false
|
||||||
|
|
||||||
const color = getColor(0)
|
const color = getColor(0)
|
||||||
|
|
||||||
|
@ -276,7 +277,7 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{#if value?.length}
|
{#if !hideCounter && value?.length}
|
||||||
<div class="count">
|
<div class="count">
|
||||||
{value?.length || 0}
|
{value?.length || 0}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue