Hide 'Body' tab for REST API datasources when using a GET query
This commit is contained in:
parent
1a5ee47e9e
commit
f4add0a180
|
@ -260,16 +260,18 @@
|
||||||
headings
|
headings
|
||||||
/>
|
/>
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab title="Body">
|
{#if query?.queryVerb !== "read"}
|
||||||
<RadioGroup
|
<Tab title="Body">
|
||||||
bind:value={query.fields.bodyType}
|
<RadioGroup
|
||||||
options={isGet ? [bodyTypes[0]] : bodyTypes}
|
bind:value={query.fields.bodyType}
|
||||||
direction="horizontal"
|
options={isGet ? [bodyTypes[0]] : bodyTypes}
|
||||||
getOptionLabel={option => option.name}
|
direction="horizontal"
|
||||||
getOptionValue={option => option.value}
|
getOptionLabel={option => option.name}
|
||||||
/>
|
getOptionValue={option => option.value}
|
||||||
<RestBodyInput bind:bodyType={query.fields.bodyType} bind:query />
|
/>
|
||||||
</Tab>
|
<RestBodyInput bind:bodyType={query.fields.bodyType} bind:query />
|
||||||
|
</Tab>
|
||||||
|
{/if}
|
||||||
<Tab title="Transformer">
|
<Tab title="Transformer">
|
||||||
<Layout noPadding>
|
<Layout noPadding>
|
||||||
{#if !$flags.queryTransformerBanner}
|
{#if !$flags.queryTransformerBanner}
|
||||||
|
|
Loading…
Reference in New Issue