Merge pull request #8790 from Budibase/bug/sev4/duplicate-add-binding-button

Remove duplicate add binding button
This commit is contained in:
Martin McKeaveney 2022-11-25 13:33:36 +00:00 committed by GitHub
commit f19e82d81c
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}