Merge pull request #1563 from Budibase/fix/query-action
Fix execute query action not working
This commit is contained in:
commit
13574941ca
|
@ -24,18 +24,18 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Layout noGap noPadding>
|
<Layout>
|
||||||
<Label>Datasource</Label>
|
|
||||||
<Select
|
<Select
|
||||||
|
label="Datasource"
|
||||||
bind:value={parameters.datasourceId}
|
bind:value={parameters.datasourceId}
|
||||||
option={$datasources.list}
|
options={$datasources.list}
|
||||||
getOptionLabel={source => source.name}
|
getOptionLabel={source => source.name}
|
||||||
getOptionValue={source => source._id}
|
getOptionValue={source => source._id}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{#if parameters.datasourceId}
|
{#if parameters.datasourceId}
|
||||||
<Label>Query</Label>
|
|
||||||
<Select
|
<Select
|
||||||
|
label="Query"
|
||||||
bind:value={parameters.queryId}
|
bind:value={parameters.queryId}
|
||||||
options={$queries.list.filter(
|
options={$queries.list.filter(
|
||||||
query => query.datasourceId === datasource._id
|
query => query.datasourceId === datasource._id
|
||||||
|
@ -46,17 +46,19 @@
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if query?.parameters?.length > 0}
|
{#if query?.parameters?.length > 0}
|
||||||
<ParameterBuilder
|
<div>
|
||||||
bind:customParams={parameters.queryParams}
|
<ParameterBuilder
|
||||||
parameters={query.parameters}
|
bind:customParams={parameters.queryParams}
|
||||||
bindings={bindableProperties}
|
parameters={query.parameters}
|
||||||
/>
|
bindings={bindableProperties}
|
||||||
<IntegrationQueryEditor
|
/>
|
||||||
height={200}
|
<IntegrationQueryEditor
|
||||||
{query}
|
height={200}
|
||||||
schema={fetchQueryDefinition(query)}
|
{query}
|
||||||
editable={false}
|
schema={fetchQueryDefinition(query)}
|
||||||
{datasource}
|
editable={false}
|
||||||
/>
|
{datasource}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
Loading…
Reference in New Issue