|
|
@ -1,5 +1,5 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { Label, Button, Spacer, Select, Input } from "@budibase/bbui" |
|
|
import { Label, ActionButton, Button, Spacer, Select, Input } from "@budibase/bbui" |
|
|
import { store, currentAsset } from "builderStore" |
|
|
import { store, currentAsset } from "builderStore" |
|
|
import { getBindableProperties } from "builderStore/dataBinding" |
|
|
import { getBindableProperties } from "builderStore/dataBinding" |
|
|
import { createEventDispatcher } from "svelte" |
|
|
import { createEventDispatcher } from "svelte" |
|
|
@ -69,13 +69,10 @@ |
|
|
value={field[1]} |
|
|
value={field[1]} |
|
|
bindings={bindableProperties} |
|
|
bindings={bindableProperties} |
|
|
on:change={event => updateFieldValue(idx, event.detail)} /> |
|
|
on:change={event => updateFieldValue(idx, event.detail)} /> |
|
|
<div class="remove-field-container"> |
|
|
<ActionButton |
|
|
<Button |
|
|
quiet |
|
|
icon="Close" |
|
|
icon="Delete" |
|
|
size="S" |
|
|
on:click={() => removeField(field[0])} /> |
|
|
quiet |
|
|
|
|
|
on:click={() => removeField(field[0])} /> |
|
|
|
|
|
</div> |
|
|
|
|
|
{/each} |
|
|
{/each} |
|
|
<div> |
|
|
<div> |
|
|
<Spacer small /> |
|
|
<Spacer small /> |
|
|
@ -84,10 +81,4 @@ |
|
|
{fieldLabel} |
|
|
{fieldLabel} |
|
|
</Button> |
|
|
</Button> |
|
|
</div> |
|
|
</div> |
|
|
{/if} |
|
|
{/if} |
|
|
|
|
|
|
|
|
<style> |
|
|
|
|
|
.remove-field-container :global(button) { |
|
|
|
|
|
vertical-align: bottom; |
|
|
|
|
|
} |
|
|
|
|
|
</style> |
|
|
|