Add unique drawer names for each binding drawer

This commit is contained in:
Andrew Kingston 2021-02-22 14:16:01 +00:00
parent e3c214f310
commit fe1e035360
1 changed files with 19 additions and 18 deletions

View File

@ -7,6 +7,7 @@
runtimeToReadableBinding,
} from "builderStore/dataBinding"
import BindingPanel from "components/design/PropertiesPanel/BindingPanel.svelte"
import { capitalise } from "../../../../helpers"
export let label = ""
export let bindable = true
@ -88,9 +89,7 @@
on:click={bindingDrawer.show}>
<Icon name="lightning" />
</div>
{/if}
</div>
<Drawer bind:this={bindingDrawer} title="Bindings">
<Drawer bind:this={bindingDrawer} title={capitalise(key)}>
<div slot="description">
<Body extraSmall grey>
Add the objects on the left to enrich your text.
@ -108,6 +107,8 @@
{bindableProperties} />
</div>
</Drawer>
{/if}
</div>
<style>
.property-control {