Remove duplicate add binding button
This commit is contained in:
parent
027ff0e42f
commit
84aa2d4776
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { Body, Button, Heading, Icon, Input, Layout } from "@budibase/bbui"
|
import { Body, Heading, Icon, Input, Layout } from "@budibase/bbui"
|
||||||
import {
|
import {
|
||||||
readableToRuntimeBinding,
|
readableToRuntimeBinding,
|
||||||
runtimeToReadableBinding,
|
runtimeToReadableBinding,
|
||||||
|
@ -11,10 +11,6 @@
|
||||||
export let bindings = []
|
export let bindings = []
|
||||||
export let customParams = {}
|
export let customParams = {}
|
||||||
|
|
||||||
function newQueryBinding() {
|
|
||||||
queryBindings = [...queryBindings, {}]
|
|
||||||
}
|
|
||||||
|
|
||||||
function deleteQueryBinding(idx) {
|
function deleteQueryBinding(idx) {
|
||||||
queryBindings.splice(idx, 1)
|
queryBindings.splice(idx, 1)
|
||||||
queryBindings = queryBindings
|
queryBindings = queryBindings
|
||||||
|
@ -31,9 +27,6 @@
|
||||||
<Layout noPadding={bindable} gap="S">
|
<Layout noPadding={bindable} gap="S">
|
||||||
<div class="controls" class:height={!bindable}>
|
<div class="controls" class:height={!bindable}>
|
||||||
<Heading size="XS">Bindings</Heading>
|
<Heading size="XS">Bindings</Heading>
|
||||||
{#if !bindable}
|
|
||||||
<Button secondary on:click={newQueryBinding}>Add Binding</Button>
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
<Body size="S">
|
<Body size="S">
|
||||||
{#if !bindable}
|
{#if !bindable}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { Body, Button, Heading, Layout } from "@budibase/bbui"
|
import { Body, Heading, Layout } from "@budibase/bbui"
|
||||||
import KeyValueBuilder from "components/integration/KeyValueBuilder.svelte"
|
import KeyValueBuilder from "components/integration/KeyValueBuilder.svelte"
|
||||||
import { getUserBindings } from "builderStore/dataBinding"
|
import { getUserBindings } from "builderStore/dataBinding"
|
||||||
export let bindable = true
|
export let bindable = true
|
||||||
|
@ -11,18 +11,11 @@
|
||||||
acc[binding.name] = binding.default
|
acc[binding.name] = binding.default
|
||||||
return acc
|
return acc
|
||||||
}, {})
|
}, {})
|
||||||
|
|
||||||
function newQueryBinding() {
|
|
||||||
queryBindings = [...queryBindings, {}]
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Layout noPadding={bindable} gap="S">
|
<Layout noPadding={bindable} gap="S">
|
||||||
<div class="controls" class:height={!bindable}>
|
<div class="controls" class:height={!bindable}>
|
||||||
<Heading size="XS">Bindings</Heading>
|
<Heading size="XS">Bindings</Heading>
|
||||||
{#if !bindable}
|
|
||||||
<Button secondary on:click={newQueryBinding}>Add Binding</Button>
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
<Body size="S">
|
<Body size="S">
|
||||||
{#if !bindable}
|
{#if !bindable}
|
||||||
|
|
Loading…
Reference in New Issue