parameter field tidy ups

This commit is contained in:
Martin McKeaveney 2021-01-22 11:13:21 +00:00
parent 1e9736e396
commit f1dac763b9
3 changed files with 2 additions and 9 deletions

View File

@ -140,13 +140,11 @@
<option value={queryVerb}>{queryVerb}</option>
{/each}
</Select>
{#if query.queryVerb}
<Select thin secondary bind:value={query.queryType}>
{#each Object.keys(config[query.queryVerb]) as queryType}
{#each Object.keys(config[query.queryVerb]) as queryType (queryType)}
<option value={queryType}>{queryType}</option>
{/each}
</Select>
{/if}
<EditQueryParamsPopover bind:parameters={query.parameters} bindable={false} />
<Spacer medium />
<Button primary href={docsLink} target="_blank">

View File

@ -20,11 +20,6 @@
}
</script>
{#if editable}
<ParameterBuilder bind:parameters={query.parameters} bindable={false} />
<Spacer large />
{/if}
<Heading extraSmall black>Query</Heading>
<Spacer medium />

View File

@ -91,7 +91,7 @@
</div>
{#if value.type === 'query'}
<i class="ri-settings-5-line" on:click={drawer.show} />
<Drawer title={'Query'}>
<Drawer title={'Query'} bind:this={drawer}>
<div slot="buttons">
<Button
blue