Update drawer titles across the board to be more useful
This commit is contained in:
parent
9450c5b770
commit
e10dd49540
|
@ -77,11 +77,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Drawer bind:this={bindingDrawer} {title} headless>
|
<Drawer bind:this={bindingDrawer} {title}>
|
||||||
<svelte:fragment slot="description">
|
|
||||||
Add the objects on the left to enrich your text.
|
|
||||||
</svelte:fragment>
|
|
||||||
|
|
||||||
<Button cta slot="buttons" on:click={handleClose} disabled={!valid}>
|
<Button cta slot="buttons" on:click={handleClose} disabled={!valid}>
|
||||||
Save
|
Save
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
export let panel = ClientBindingPanel
|
export let panel = ClientBindingPanel
|
||||||
export let value = ""
|
export let value = ""
|
||||||
export let bindings = []
|
export let bindings = []
|
||||||
export let title = "Bindings"
|
export let title
|
||||||
export let placeholder
|
export let placeholder
|
||||||
export let label
|
export let label
|
||||||
export let disabled = false
|
export let disabled = false
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
on:drawerShow
|
on:drawerShow
|
||||||
{fillWidth}
|
{fillWidth}
|
||||||
bind:this={bindingDrawer}
|
bind:this={bindingDrawer}
|
||||||
{title}
|
title={title ?? placeholder ?? "Bindings"}
|
||||||
left={drawerLeft}
|
left={drawerLeft}
|
||||||
>
|
>
|
||||||
<Button cta slot="buttons" disabled={!valid} on:click={saveBinding}>
|
<Button cta slot="buttons" disabled={!valid} on:click={saveBinding}>
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
export let bindings
|
export let bindings
|
||||||
export let nested
|
export let nested
|
||||||
export let componentInstance
|
export let componentInstance
|
||||||
|
export let title = "Actions"
|
||||||
|
|
||||||
let drawer
|
let drawer
|
||||||
let tmpValue
|
let tmpValue
|
||||||
|
@ -37,7 +38,7 @@
|
||||||
<ActionButton on:click={openDrawer}>{actionText}</ActionButton>
|
<ActionButton on:click={openDrawer}>{actionText}</ActionButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Drawer bind:this={drawer} title={"Actions"} on:drawerHide on:drawerShow>
|
<Drawer bind:this={drawer} {title} on:drawerHide on:drawerShow>
|
||||||
<svelte:fragment slot="description">
|
<svelte:fragment slot="description">
|
||||||
Define what actions to run.
|
Define what actions to run.
|
||||||
</svelte:fragment>
|
</svelte:fragment>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
<Label small>Row IDs</Label>
|
<Label small>Row IDs</Label>
|
||||||
<DrawerBindableInput
|
<DrawerBindableInput
|
||||||
{bindings}
|
{bindings}
|
||||||
title="Rows to delete"
|
title="Row IDs to delete"
|
||||||
value={parameters.rowId}
|
value={parameters.rowId}
|
||||||
on:change={value => (parameters.rowId = value.detail)}
|
on:change={value => (parameters.rowId = value.detail)}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<Label small>Row ID</Label>
|
<Label small>Row ID</Label>
|
||||||
<DrawerBindableInput
|
<DrawerBindableInput
|
||||||
{bindings}
|
{bindings}
|
||||||
title="Row ID to Fetch"
|
title="Row ID"
|
||||||
value={parameters.rowId}
|
value={parameters.rowId}
|
||||||
on:change={value => (parameters.rowId = value.detail)}
|
on:change={value => (parameters.rowId = value.detail)}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
<Label small>{valueLabel}</Label>
|
<Label small>{valueLabel}</Label>
|
||||||
<DrawerBindableInput
|
<DrawerBindableInput
|
||||||
title={`Value for "${field[0]}"`}
|
title={field[0]}
|
||||||
value={field[1]}
|
value={field[1]}
|
||||||
{bindings}
|
{bindings}
|
||||||
on:change={event => updateFieldValue(idx, event.detail)}
|
on:change={event => updateFieldValue(idx, event.detail)}
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
<Select bind:value={parameters.type} options={types} placeholder={null} />
|
<Select bind:value={parameters.type} options={types} placeholder={null} />
|
||||||
<Label>Message</Label>
|
<Label>Message</Label>
|
||||||
<DrawerBindableInput
|
<DrawerBindableInput
|
||||||
|
title="Message"
|
||||||
{bindings}
|
{bindings}
|
||||||
value={parameters.message}
|
value={parameters.message}
|
||||||
on:change={e => (parameters.message = e.detail)}
|
on:change={e => (parameters.message = e.detail)}
|
||||||
|
|
|
@ -72,6 +72,7 @@
|
||||||
{#if parameters.type === "set"}
|
{#if parameters.type === "set"}
|
||||||
<Label small>Value</Label>
|
<Label small>Value</Label>
|
||||||
<DrawerBindableInput
|
<DrawerBindableInput
|
||||||
|
title="Field value"
|
||||||
{bindings}
|
{bindings}
|
||||||
value={parameters.value}
|
value={parameters.value}
|
||||||
on:change={e => (parameters.value = e.detail)}
|
on:change={e => (parameters.value = e.detail)}
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
{#if parameters.type === "set"}
|
{#if parameters.type === "set"}
|
||||||
<Label small>Value</Label>
|
<Label small>Value</Label>
|
||||||
<DrawerBindableInput
|
<DrawerBindableInput
|
||||||
|
title="State value"
|
||||||
{bindings}
|
{bindings}
|
||||||
value={parameters.value}
|
value={parameters.value}
|
||||||
on:change={e => (parameters.value = e.detail)}
|
on:change={e => (parameters.value = e.detail)}
|
||||||
|
|
|
@ -98,6 +98,7 @@
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
bindings={allBindings}
|
bindings={allBindings}
|
||||||
name={key}
|
name={key}
|
||||||
|
title={label}
|
||||||
{nested}
|
{nested}
|
||||||
{key}
|
{key}
|
||||||
{type}
|
{type}
|
||||||
|
|
Loading…
Reference in New Issue