fix DataSourceSelect Query Panel
This commit is contained in:
parent
6158a547ea
commit
7a05536319
|
@ -5,8 +5,10 @@
|
||||||
Popover,
|
Popover,
|
||||||
Divider,
|
Divider,
|
||||||
Select,
|
Select,
|
||||||
|
Layout,
|
||||||
Heading,
|
Heading,
|
||||||
Drawer,
|
Drawer,
|
||||||
|
DrawerContent,
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import { createEventDispatcher } from "svelte"
|
import { createEventDispatcher } from "svelte"
|
||||||
import { store, currentAsset } from "builderStore"
|
import { store, currentAsset } from "builderStore"
|
||||||
|
@ -103,10 +105,9 @@
|
||||||
{#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 Parameters"} bind:this={drawer}>
|
<Drawer title={"Query Parameters"} bind:this={drawer}>
|
||||||
<div slot="buttons">
|
|
||||||
<Button
|
<Button
|
||||||
blue
|
slot="buttons"
|
||||||
thin
|
cta
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
notifications.success("Query parameters saved.")
|
notifications.success("Query parameters saved.")
|
||||||
handleSelected(value)
|
handleSelected(value)
|
||||||
|
@ -115,8 +116,8 @@
|
||||||
>
|
>
|
||||||
Save
|
Save
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
<DrawerContent slot="body">
|
||||||
<div class="drawer-contents" slot="body">
|
<Layout>
|
||||||
{#if value.parameters.length > 0}
|
{#if value.parameters.length > 0}
|
||||||
<ParameterBuilder
|
<ParameterBuilder
|
||||||
bind:customParams={value.queryParams}
|
bind:customParams={value.queryParams}
|
||||||
|
@ -134,7 +135,8 @@
|
||||||
)}
|
)}
|
||||||
editable={false}
|
editable={false}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Layout>
|
||||||
|
</DrawerContent>
|
||||||
</Drawer>
|
</Drawer>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue