From 8ab75549a283756154a69842bb8a8376340e807b Mon Sep 17 00:00:00 2001 From: pngwn Date: Wed, 26 Feb 2020 12:45:20 +0000 Subject: [PATCH] Rename detailProp to metadataProp --- packages/builder/src/builderStore/store.js | 4 ++-- .../builder/src/userInterface/ComponentPropertiesPanel.svelte | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/builderStore/store.js b/packages/builder/src/builderStore/store.js index 3d506181c1..0c69f5675b 100644 --- a/packages/builder/src/builderStore/store.js +++ b/packages/builder/src/builderStore/store.js @@ -112,7 +112,7 @@ export const getStore = () => { store.moveDownComponent = moveDownComponent(store) store.copyComponent = copyComponent(store) store.addTemplatedComponent = addTemplatedComponent(store) - store.setDetailProp = setDetailProp(store) + store.setMetadataProp = setMetadataProp(store) return store } @@ -956,7 +956,7 @@ const walkProps = (props, action, cancelToken = null) => { } } -const setDetailProp = store => (name, prop) => { +const setMetadataProp = store => (name, prop) => { store.update(s => { s.currentPreviewItem[name] = prop return s diff --git a/packages/builder/src/userInterface/ComponentPropertiesPanel.svelte b/packages/builder/src/userInterface/ComponentPropertiesPanel.svelte index 9ee326e55d..b066386892 100644 --- a/packages/builder/src/userInterface/ComponentPropertiesPanel.svelte +++ b/packages/builder/src/userInterface/ComponentPropertiesPanel.svelte @@ -36,7 +36,6 @@ function getProps(obj, keys) { return keys.map((k, i) => [k, obj[k], obj.props._id + i]) } - $: console.log($store, component)
@@ -87,7 +86,7 @@ store.setDetailProp(k, target.value)} /> + on:input={({ target }) => store.setMetadataProp(k, target.value)} />
{/each}