Browse Source
Merge pull request #6557 from Budibase/remove-datasource-from-schema-picker
Data providers are excluded from the Form Schema picker
master
deanhannigan
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
9 additions and
2 deletions
-
packages/builder/src/components/design/settings/controls/DataSourceSelect.svelte
-
packages/builder/src/components/design/settings/controls/SchemaSelect.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> |
|
|
|
|
|
|
|
@ -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} |
|
|
|
/> |
|
|
|
|