diff --git a/packages/builder/src/components/integration/QueryViewer.svelte b/packages/builder/src/components/integration/QueryViewer.svelte index 7a76970ecb..124531b35b 100644 --- a/packages/builder/src/components/integration/QueryViewer.svelte +++ b/packages/builder/src/components/integration/QueryViewer.svelte @@ -1,5 +1,5 @@ + { + console.log("running") + //navigateTo = null + }} +> + { + console.log("CONFIRM") + saveQuery() //needs ascertain success? + discard = true + $goto(`${navigateTo}`) + }} + onCancel={() => { + console.log("CANCEL") + discard = true + $goto(`${navigateTo}`) + }} + > + Leaving this section will mean losing and changes to your query + + +
Query {integrationInfo?.friendlyName} @@ -149,18 +199,20 @@ /> {/if} {#key query.parameters} - { - query.parameters = e.detail.map(binding => { - return { - name: binding.name, - default: binding.value, - } - }) - }} - /> +
+ { + query.parameters = e.detail.map(binding => { + return { + name: binding.name, + default: binding.value, + } + }) + }} + /> +
{/key} {/if}
@@ -203,7 +255,17 @@
Results - @@ -274,4 +336,9 @@ min-width: 150px; align-items: center; } + + .binding-wrap :global(div.container) { + padding-left: 0px; + padding-right: 0px; + } diff --git a/packages/builder/src/pages/builder/app/[application]/data/query/[queryId]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/query/[queryId]/index.svelte index 7f665c3394..fadd32ac75 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/query/[queryId]/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/query/[queryId]/index.svelte @@ -3,8 +3,10 @@ import QueryViewer from "components/integration/QueryViewer.svelte" import RestQueryViewer from "components/integration/RestQueryViewer.svelte" import { IntegrationTypes } from "constants/backend" + import { cloneDeep } from "lodash/fp" $: query = $queries.selected + $: editableQuery = cloneDeep(query) $: datasource = $datasources.list.find(ds => ds._id === query?.datasourceId) $: isRestQuery = datasource?.source === IntegrationTypes.REST @@ -13,6 +15,6 @@ {#if isRestQuery} {:else} - + {/if} {/if}