1
0
Fork 0
mirror of synced 2024-07-11 09:15:48 +12:00

Update drawer titles across the board to be more useful

This commit is contained in:
Andrew Kingston 2024-02-27 13:25:37 +00:00
parent 9450c5b770
commit e10dd49540
10 changed files with 12 additions and 11 deletions

View file

@ -77,11 +77,7 @@
{/if}
</div>
<Drawer bind:this={bindingDrawer} {title} headless>
<svelte:fragment slot="description">
Add the objects on the left to enrich your text.
</svelte:fragment>
<Drawer bind:this={bindingDrawer} {title}>
<Button cta slot="buttons" on:click={handleClose} disabled={!valid}>
Save
</Button>

View file

@ -13,7 +13,7 @@
export let panel = ClientBindingPanel
export let value = ""
export let bindings = []
export let title = "Bindings"
export let title
export let placeholder
export let label
export let disabled = false
@ -89,7 +89,7 @@
on:drawerShow
{fillWidth}
bind:this={bindingDrawer}
{title}
title={title ?? placeholder ?? "Bindings"}
left={drawerLeft}
>
<Button cta slot="buttons" disabled={!valid} on:click={saveBinding}>

View file

@ -12,6 +12,7 @@
export let bindings
export let nested
export let componentInstance
export let title = "Actions"
let drawer
let tmpValue
@ -37,7 +38,7 @@
<ActionButton on:click={openDrawer}>{actionText}</ActionButton>
</div>
<Drawer bind:this={drawer} title={"Actions"} on:drawerHide on:drawerShow>
<Drawer bind:this={drawer} {title} on:drawerHide on:drawerShow>
<svelte:fragment slot="description">
Define what actions to run.
</svelte:fragment>

View file

@ -31,7 +31,7 @@
<Label small>Row IDs</Label>
<DrawerBindableInput
{bindings}
title="Rows to delete"
title="Row IDs to delete"
value={parameters.rowId}
on:change={value => (parameters.rowId = value.detail)}
/>

View file

@ -29,7 +29,7 @@
<Label small>Row ID</Label>
<DrawerBindableInput
{bindings}
title="Row ID to Fetch"
title="Row ID"
value={parameters.rowId}
on:change={value => (parameters.rowId = value.detail)}
/>

View file

@ -62,7 +62,7 @@
{/if}
<Label small>{valueLabel}</Label>
<DrawerBindableInput
title={`Value for "${field[0]}"`}
title={field[0]}
value={field[1]}
{bindings}
on:change={event => updateFieldValue(idx, event.detail)}

View file

@ -40,6 +40,7 @@
<Select bind:value={parameters.type} options={types} placeholder={null} />
<Label>Message</Label>
<DrawerBindableInput
title="Message"
{bindings}
value={parameters.message}
on:change={e => (parameters.message = e.detail)}

View file

@ -72,6 +72,7 @@
{#if parameters.type === "set"}
<Label small>Value</Label>
<DrawerBindableInput
title="Field value"
{bindings}
value={parameters.value}
on:change={e => (parameters.value = e.detail)}

View file

@ -38,6 +38,7 @@
{#if parameters.type === "set"}
<Label small>Value</Label>
<DrawerBindableInput
title="State value"
{bindings}
value={parameters.value}
on:change={e => (parameters.value = e.detail)}

View file

@ -98,6 +98,7 @@
onChange={handleChange}
bindings={allBindings}
name={key}
title={label}
{nested}
{key}
{type}