Fix execute query action not working
This commit is contained in:
parent
1150593e74
commit
bb422d1c4e
|
@ -24,18 +24,18 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<Layout noGap noPadding>
|
||||
<Label>Datasource</Label>
|
||||
<Layout>
|
||||
<Select
|
||||
label="Datasource"
|
||||
bind:value={parameters.datasourceId}
|
||||
option={$datasources.list}
|
||||
options={$datasources.list}
|
||||
getOptionLabel={source => source.name}
|
||||
getOptionValue={source => source._id}
|
||||
/>
|
||||
|
||||
{#if parameters.datasourceId}
|
||||
<Label>Query</Label>
|
||||
<Select
|
||||
label="Query"
|
||||
bind:value={parameters.queryId}
|
||||
options={$queries.list.filter(
|
||||
query => query.datasourceId === datasource._id
|
||||
|
@ -46,6 +46,7 @@
|
|||
{/if}
|
||||
|
||||
{#if query?.parameters?.length > 0}
|
||||
<div>
|
||||
<ParameterBuilder
|
||||
bind:customParams={parameters.queryParams}
|
||||
parameters={query.parameters}
|
||||
|
@ -58,5 +59,6 @@
|
|||
editable={false}
|
||||
{datasource}
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
</Layout>
|
||||
|
|
Loading…
Reference in New Issue