Merge pull request #5136 from Budibase/fix/automation-bugs
Some automation bug fixes
This commit is contained in:
commit
5ed88f6b31
2 changed files with 6 additions and 49 deletions
|
@ -162,7 +162,7 @@
|
||||||
<Select
|
<Select
|
||||||
on:change={e => onChange(e, key)}
|
on:change={e => onChange(e, key)}
|
||||||
value={inputData[key]}
|
value={inputData[key]}
|
||||||
options={Object.keys(table.schema)}
|
options={Object.keys(table?.schema || {})}
|
||||||
/>
|
/>
|
||||||
{:else if value.customType === "filters"}
|
{:else if value.customType === "filters"}
|
||||||
<ActionButton on:click={drawer.show}>Define filters</ActionButton>
|
<ActionButton on:click={drawer.show}>Define filters</ActionButton>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { Input, Select } from "@budibase/bbui"
|
import { Input, Select, Button } from "@budibase/bbui"
|
||||||
import { createEventDispatcher } from "svelte"
|
import { createEventDispatcher } from "svelte"
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
@ -62,9 +62,6 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="root">
|
<div class="root">
|
||||||
<div class="add-field">
|
|
||||||
<i class="ri-add-line" on:click={addField} />
|
|
||||||
</div>
|
|
||||||
<div class="spacer" />
|
<div class="spacer" />
|
||||||
{#each fieldsArray as field}
|
{#each fieldsArray as field}
|
||||||
<div class="field">
|
<div class="field">
|
||||||
|
@ -88,6 +85,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
<Button quiet secondary icon="Add" on:click={addField}>Add field</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -103,52 +101,11 @@
|
||||||
|
|
||||||
.field {
|
.field {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
background-color: var(--grey-2);
|
|
||||||
margin-bottom: var(--spacing-m);
|
margin-bottom: var(--spacing-m);
|
||||||
border-style: solid;
|
|
||||||
border-width: 1px;
|
|
||||||
border-color: var(--grey-4);
|
|
||||||
display: grid;
|
display: grid;
|
||||||
/*grid-template-rows: auto auto;
|
grid-template-columns: 1fr 1fr auto;
|
||||||
grid-template-columns: auto;*/
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
align-items: center;
|
||||||
|
gap: var(--spacing-m);
|
||||||
.field :global(select) {
|
|
||||||
padding: var(--spacing-xs) 2rem var(--spacing-m) var(--spacing-s) !important;
|
|
||||||
font-size: var(--font-size-xs);
|
|
||||||
color: var(--grey-7);
|
|
||||||
}
|
|
||||||
|
|
||||||
.field :global(.pointer) {
|
|
||||||
padding-bottom: var(--spacing-m) !important;
|
|
||||||
color: var(--grey-2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.field :global(input) {
|
|
||||||
padding: var(--spacing-m) var(--spacing-xl) var(--spacing-xs)
|
|
||||||
var(--spacing-m);
|
|
||||||
font-size: var(--font-size-s);
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remove-field {
|
|
||||||
cursor: pointer;
|
|
||||||
color: var(--grey-6);
|
|
||||||
position: absolute;
|
|
||||||
top: var(--spacing-m);
|
|
||||||
right: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remove-field:hover {
|
|
||||||
color: var(--black);
|
|
||||||
}
|
|
||||||
|
|
||||||
.add-field {
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
.add-field > i {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue