diff --git a/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte b/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte index 5ea1d64e51..e00fb92e27 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte @@ -50,7 +50,10 @@ function addBlockToAutomation(stepId, blockDefinition) { const newBlock = $automationStore.selectedAutomation.constructBlock( - selectedTab, stepId, blockDefinition) + selectedTab, + stepId, + blockDefinition + ) automationStore.actions.addBlockToAutomation(newBlock) closePopover() if (stepId === "WEBHOOK") { diff --git a/packages/builder/src/components/automation/SetupPanel/SchemaSetup.svelte b/packages/builder/src/components/automation/SetupPanel/SchemaSetup.svelte index 51c105e9f4..8855fb6895 100644 --- a/packages/builder/src/components/automation/SetupPanel/SchemaSetup.svelte +++ b/packages/builder/src/components/automation/SetupPanel/SchemaSetup.svelte @@ -36,9 +36,7 @@
-
- -
+
{#each fieldsArray as field}
@@ -57,13 +55,11 @@ - removeField(field.name)} /> - -
{/each} -
diff --git a/packages/builder/src/components/backend/DatasourceNavigator/modals/CreateDatasourceModal.svelte b/packages/builder/src/components/backend/DatasourceNavigator/modals/CreateDatasourceModal.svelte index 97f5bfad07..a41cbd2466 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/modals/CreateDatasourceModal.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/modals/CreateDatasourceModal.svelte @@ -16,7 +16,11 @@ function checkValid(evt) { const datasourceName = evt.target.value - if ($backendUiStore.datasources?.some(datasource => datasource.name === datasourceName)) { + if ( + $backendUiStore.datasources?.some( + datasource => datasource.name === datasourceName + ) + ) { error = `Datasource with name ${datasourceName} already exists. Please choose another name.` return } @@ -30,7 +34,7 @@ const response = await backendUiStore.actions.datasources.save({ name, source: type, - config + config, }) notifier.success(`Datasource ${name} created successfully.`) analytics.captureEvent("Datasource Created", { name }) diff --git a/packages/builder/src/components/backend/DatasourceNavigator/modals/CreateQueryModal.svelte b/packages/builder/src/components/backend/DatasourceNavigator/modals/CreateQueryModal.svelte index cc22870ec2..6a98313335 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/modals/CreateQueryModal.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/modals/CreateQueryModal.svelte @@ -16,7 +16,11 @@ function checkValid(evt) { const datasourceName = evt.target.value - if ($backendUiStore.datasources?.some(datasource => datasource.name === datasourceName)) { + if ( + $backendUiStore.datasources?.some( + datasource => datasource.name === datasourceName + ) + ) { error = `Datasource with name ${tableName} already exists. Please choose another name.` return } @@ -30,7 +34,7 @@ await backendUiStore.actions.datasources.save({ name, source: type, - config + config, }) notifier.success(`Datasource ${name} created successfully.`) analytics.captureEvent("Datasource Created", { name }) diff --git a/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditDatasourcePopover.svelte b/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditDatasourcePopover.svelte index d76c8cdcd5..1bbaddf5ef 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditDatasourcePopover.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditDatasourcePopover.svelte @@ -3,7 +3,7 @@ import { notifier } from "builderStore/store/notifications" import { DropdownMenu, Button, Input } from "@budibase/bbui" import ConfirmDialog from "components/common/ConfirmDialog.svelte" - import IntegrationConfigForm from "../TableIntegrationMenu//IntegrationConfigForm.svelte" + import IntegrationConfigForm from "../TableIntegrationMenu//IntegrationConfigForm.svelte" import { DropdownContainer, DropdownItem } from "components/common/Dropdowns" export let datasource @@ -36,13 +36,13 @@
- - - + + + - - - + + + - Are you sure you wish to delete this query? - This action cannot be undone. + Are you sure you wish to delete this query? This action cannot be undone. \ No newline at end of file + .field { + margin-bottom: var(--spacing-m); + display: grid; + grid-template-columns: 1fr 2%; + grid-gap: var(--spacing-m); + align-items: center; + } + diff --git a/packages/builder/src/components/integration/QueryParameterBuilder.svelte b/packages/builder/src/components/integration/QueryParameterBuilder.svelte index 34a5eb9bae..1be4a9d1ce 100644 --- a/packages/builder/src/components/integration/QueryParameterBuilder.svelte +++ b/packages/builder/src/components/integration/QueryParameterBuilder.svelte @@ -61,7 +61,6 @@ Add Parameter {/if} - diff --git a/packages/builder/src/components/userInterface/TableViewSelect.svelte b/packages/builder/src/components/userInterface/TableViewSelect.svelte index e5adf611d6..694a2c0b7a 100644 --- a/packages/builder/src/components/userInterface/TableViewSelect.svelte +++ b/packages/builder/src/components/userInterface/TableViewSelect.svelte @@ -14,7 +14,6 @@ export let value = {} - $: tables = $backendUiStore.tables.map(m => ({ label: m.name, name: `all_${m._id}`, @@ -33,12 +32,12 @@ }, []) $: queries = $backendUiStore.queries.map(query => ({ - label: query.name, - name: query.name, - ...query, - schema: query.schema, - parameters: query.parameters, - type: "query", + label: query.name, + name: query.name, + ...query, + schema: query.schema, + parameters: query.parameters, + type: "query", })) $: bindableProperties = fetchBindableProperties({ @@ -82,8 +81,12 @@ } function fetchDatasourceSchema(query) { - const source = $backendUiStore.datasources.find(ds => ds._id === query.datasourceId).source - return $backendUiStore.integrations[source].query[query.queryVerb][query.queryType]; + const source = $backendUiStore.datasources.find( + ds => ds._id === query.datasourceId + ).source + return $backendUiStore.integrations[source].query[query.queryVerb][ + query.queryType + ] } @@ -94,22 +97,26 @@ {value.label ? value.label : 'Table / View / Query'} -{#if value.type === "query"} - +{#if value.type === 'query'} + {#if bindingDrawerOpen}
- +
- + editable={false} /> {#if value.parameters.length > 0} -