Remove duplicate add binding button

This commit is contained in:
Mel O'Hagan 2022-11-23 18:19:43 +00:00
parent 027ff0e42f
commit 84aa2d4776
2 changed files with 2 additions and 16 deletions

View File

@ -1,5 +1,5 @@
<script>
import { Body, Button, Heading, Icon, Input, Layout } from "@budibase/bbui"
import { Body, Heading, Icon, Input, Layout } from "@budibase/bbui"
import {
readableToRuntimeBinding,
runtimeToReadableBinding,
@ -11,10 +11,6 @@
export let bindings = []
export let customParams = {}
function newQueryBinding() {
queryBindings = [...queryBindings, {}]
}
function deleteQueryBinding(idx) {
queryBindings.splice(idx, 1)
queryBindings = queryBindings
@ -31,9 +27,6 @@
<Layout noPadding={bindable} gap="S">
<div class="controls" class:height={!bindable}>
<Heading size="XS">Bindings</Heading>
{#if !bindable}
<Button secondary on:click={newQueryBinding}>Add Binding</Button>
{/if}
</div>
<Body size="S">
{#if !bindable}

View File

@ -1,5 +1,5 @@
<script>
import { Body, Button, Heading, Layout } from "@budibase/bbui"
import { Body, Heading, Layout } from "@budibase/bbui"
import KeyValueBuilder from "components/integration/KeyValueBuilder.svelte"
import { getUserBindings } from "builderStore/dataBinding"
export let bindable = true
@ -11,18 +11,11 @@
acc[binding.name] = binding.default
return acc
}, {})
function newQueryBinding() {
queryBindings = [...queryBindings, {}]
}
</script>
<Layout noPadding={bindable} gap="S">
<div class="controls" class:height={!bindable}>
<Heading size="XS">Bindings</Heading>
{#if !bindable}
<Button secondary on:click={newQueryBinding}>Add Binding</Button>
{/if}
</div>
<Body size="S">
{#if !bindable}