Data providers are excluded from the Form Schema picker
This commit is contained in:
parent
ccf2c51c6a
commit
663b405032
|
@ -25,6 +25,7 @@
|
||||||
export let otherSources
|
export let otherSources
|
||||||
export let showAllQueries
|
export let showAllQueries
|
||||||
export let bindings = []
|
export let bindings = []
|
||||||
|
export let showDataProviders = true
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
const arrayTypes = ["attachment", "array"]
|
const arrayTypes = ["attachment", "array"]
|
||||||
|
@ -258,7 +259,7 @@
|
||||||
{/each}
|
{/each}
|
||||||
</ul>
|
</ul>
|
||||||
{/if}
|
{/if}
|
||||||
{#if dataProviders?.length}
|
{#if showDataProviders && dataProviders?.length}
|
||||||
<Divider size="S" />
|
<Divider size="S" />
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<Heading size="XS">Data Providers</Heading>
|
<Heading size="XS">Data Providers</Heading>
|
||||||
|
|
|
@ -4,4 +4,10 @@
|
||||||
const otherSources = [{ name: "Custom", label: "Custom" }]
|
const otherSources = [{ name: "Custom", label: "Custom" }]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<DataSourceSelect on:change {...$$props} showAllQueries={true} {otherSources} />
|
<DataSourceSelect
|
||||||
|
on:change
|
||||||
|
{...$$props}
|
||||||
|
showAllQueries={true}
|
||||||
|
showDataProviders={false}
|
||||||
|
{otherSources}
|
||||||
|
/>
|
||||||
|
|
Loading…
Reference in New Issue