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> <option value={queryVerb}>{queryVerb}</option>
{/each} {/each}
</Select> </Select>
{#if query.queryVerb}
<Select thin secondary bind:value={query.queryType}> <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> <option value={queryType}>{queryType}</option>
{/each} {/each}
</Select> </Select>
{/if}
<EditQueryParamsPopover bind:parameters={query.parameters} bindable={false} /> <EditQueryParamsPopover bind:parameters={query.parameters} bindable={false} />
<Spacer medium /> <Spacer medium />
<Button primary href={docsLink} target="_blank"> <Button primary href={docsLink} target="_blank">

View File

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

View File

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