Browse Source

Data providers are excluded from the Form Schema picker

pull/6557/head
Dean 4 years ago
parent
commit
db446afd36
  1. 3
      packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte
  2. 8
      packages/builder/src/components/design/PropertiesPanel/PropertyControls/SchemaSelect.svelte

3
packages/builder/src/components/design/PropertiesPanel/PropertyControls/DataSourceSelect.svelte

@ -25,6 +25,7 @@
export let otherSources
export let showAllQueries
export let bindings = []
export let showDataProviders = true
const dispatch = createEventDispatcher()
const arrayTypes = ["attachment", "array"]
@ -258,7 +259,7 @@
{/each}
</ul>
{/if}
{#if dataProviders?.length}
{#if showDataProviders && dataProviders?.length}
<Divider size="S" />
<div class="title">
<Heading size="XS">Data Providers</Heading>

8
packages/builder/src/components/design/PropertiesPanel/PropertyControls/SchemaSelect.svelte

@ -4,4 +4,10 @@
const otherSources = [{ name: "Custom", label: "Custom" }]
</script>
<DataSourceSelect on:change {...$$props} showAllQueries={true} {otherSources} />
<DataSourceSelect
on:change
{...$$props}
showAllQueries={true}
showDataProviders={false}
{otherSources}
/>

Loading…
Cancel
Save