From 59624741dea01c37ee19954b3f35feba432b35a1 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Fri, 1 May 2020 17:39:50 +0200 Subject: [PATCH] move onSelect method ComponentsHierarchyChildren --- .../components/userInterface/ComponentsHierarchy.svelte | 2 -- .../userInterface/ComponentsHierarchyChildren.svelte | 8 +++++++- .../src/components/userInterface/PageLayout.svelte | 3 --- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte b/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte index 05a3163911..72e91d0600 100644 --- a/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte +++ b/packages/builder/src/components/userInterface/ComponentsHierarchy.svelte @@ -49,7 +49,6 @@ } const changeScreen = screen => { - console.log("Screen: ", screen) store.setCurrentScreen(screen.title) $goto(`./:page/${screen.title}`) } @@ -82,7 +81,6 @@ + import { store } from "builderStore" import { last } from "lodash/fp" import { pipe } from "../common/core" import { @@ -16,6 +17,7 @@ export let onMoveUpComponent export let onMoveDownComponent export let onCopyComponent + export let ids = [] const capitalise = s => s.substring(0, 1).toUpperCase() + s.substring(1) const get_name = s => (!s ? "" : last(s.split("/"))) @@ -28,11 +30,15 @@ return onMoveDownComponent(c) } } + + const selectComponent = (ids, component) => { + store.selectComponent(component) + }