Browse Source

Revert hiding body tab for GETs since already implemented in another pending PR

master
Andrew Kingston 5 years ago
parent
commit
49e813cc6c
  1. 22
      packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte

22
packages/builder/src/pages/builder/app/[application]/data/datasource/[selectedDatasource]/rest/[query]/index.svelte

@ -260,18 +260,16 @@
headings headings
/> />
</Tab> </Tab>
{#if query?.queryVerb !== "read"} <Tab title="Body">
<Tab title="Body"> <RadioGroup
<RadioGroup bind:value={query.fields.bodyType}
bind:value={query.fields.bodyType} options={isGet ? [bodyTypes[0]] : bodyTypes}
options={isGet ? [bodyTypes[0]] : bodyTypes} direction="horizontal"
direction="horizontal" getOptionLabel={option => option.name}
getOptionLabel={option => option.name} getOptionValue={option => option.value}
getOptionValue={option => option.value} />
/> <RestBodyInput bind:bodyType={query.fields.bodyType} bind:query />
<RestBodyInput bind:bodyType={query.fields.bodyType} bind:query /> </Tab>
</Tab>
{/if}
<Tab title="Transformer"> <Tab title="Transformer">
<Layout noPadding> <Layout noPadding>
{#if !$flags.queryTransformerBanner} {#if !$flags.queryTransformerBanner}

Loading…
Cancel
Save