update FilterEditor and SaveFields drawers
This commit is contained in:
parent
79366072dc
commit
2edc795185
|
@ -1,5 +1,5 @@
|
|||
<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 { getBindableProperties } from "builderStore/dataBinding"
|
||||
import { createEventDispatcher } from "svelte"
|
||||
|
@ -69,13 +69,10 @@
|
|||
value={field[1]}
|
||||
bindings={bindableProperties}
|
||||
on:change={event => updateFieldValue(idx, event.detail)} />
|
||||
<div class="remove-field-container">
|
||||
<Button
|
||||
icon="Close"
|
||||
size="S"
|
||||
<ActionButton
|
||||
quiet
|
||||
icon="Delete"
|
||||
on:click={() => removeField(field[0])} />
|
||||
</div>
|
||||
{/each}
|
||||
<div>
|
||||
<Spacer small />
|
||||
|
@ -85,9 +82,3 @@
|
|||
</Button>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
.remove-field-container :global(button) {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -36,13 +36,10 @@
|
|||
</script>
|
||||
|
||||
<Button secondary wide on:click={drawer.show}>Define Filters</Button>
|
||||
<Drawer bind:this={drawer} title={'Filtering'}>
|
||||
<heading slot="buttons">
|
||||
<Button thin blue on:click={saveFilter}>Save</Button>
|
||||
</heading>
|
||||
<div slot="body">
|
||||
<div class="root">
|
||||
<Body small grey>
|
||||
<Drawer bind:this={drawer} title='Filtering'>
|
||||
<Button cta slot="buttons" on:click={saveFilter}>Save</Button>
|
||||
<div class="root" slot="body">
|
||||
<Body s>
|
||||
{#if !Object.keys(tempValue || {}).length}
|
||||
Add your first filter column.
|
||||
{:else}
|
||||
|
@ -59,7 +56,6 @@
|
|||
on:change={onFieldsChanged} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Drawer>
|
||||
|
||||
<style>
|
||||
|
@ -74,7 +70,7 @@
|
|||
display: grid;
|
||||
column-gap: var(--spacing-l);
|
||||
row-gap: var(--spacing-s);
|
||||
align-items: center;
|
||||
grid-template-columns: auto 1fr auto 1fr auto;
|
||||
align-items: baseline;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue