From 15de3c8f837f511af7900da375845b081fcf7970 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 11 Jan 2021 20:17:56 +0000 Subject: [PATCH] styling, async data fetching --- .../DatasourceNavigator.svelte | 1 - .../integration/QueryParameterBuilder.svelte | 25 ++++++---- .../components/integration/QueryViewer.svelte | 18 +++---- .../src/components/integration/index.svelte | 5 +- .../EventsEditor/EventEditor.svelte | 5 +- .../userInterface/TableViewSelect.svelte | 48 ++++++++++++------- packages/client/src/api/datasources.js | 13 +++-- packages/standard-components/src/List.svelte | 8 +++- 8 files changed, 79 insertions(+), 44 deletions(-) diff --git a/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte b/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte index 408e1edd3c..3955e34041 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/DatasourceNavigator.svelte @@ -13,7 +13,6 @@ $backendUiStore.selectedView && $backendUiStore.selectedView.name function selectDatasource(datasource) { - // You can't actually select a datasource, just edit it backendUiStore.actions.datasources.select(datasource._id) $goto(`./datasource/${datasource._id}`) } diff --git a/packages/builder/src/components/integration/QueryParameterBuilder.svelte b/packages/builder/src/components/integration/QueryParameterBuilder.svelte index 440dd5ea5e..91f0eb023c 100644 --- a/packages/builder/src/components/integration/QueryParameterBuilder.svelte +++ b/packages/builder/src/components/integration/QueryParameterBuilder.svelte @@ -2,6 +2,7 @@ import { Button, TextArea, Label, Input, Heading } from "@budibase/bbui" import BindableInput from "components/userInterface/BindableInput.svelte" + export let bindable = true export let parameters = [] export let bindings = [] export let customParams = {} @@ -18,19 +19,23 @@
Parameters -
+
- + {#if bindable} + + {/if}
{#each parameters as parameter, idx} - + {#if bindable} + + {/if} deleteQueryParameter(idx)} /> @@ -40,9 +45,13 @@
diff --git a/packages/builder/src/components/integration/index.svelte b/packages/builder/src/components/integration/index.svelte index 9f81442074..9b9b7e5d11 100644 --- a/packages/builder/src/components/integration/index.svelte +++ b/packages/builder/src/components/integration/index.svelte @@ -15,7 +15,8 @@ {#if query.queryType === QueryTypes.SQL} - + - +