fix: added dnd to master screen

This commit is contained in:
Michael Shanks 2020-08-13 10:15:37 +01:00
parent b6e6a1ef4b
commit 49edb74db4
1 changed files with 4 additions and 1 deletions

View File

@ -16,12 +16,14 @@
import { pipe } from "components/common/core" import { pipe } from "components/common/core"
import { store } from "builderStore" import { store } from "builderStore"
import { ArrowDownIcon, GridIcon } from "components/common/Icons/" import { ArrowDownIcon, GridIcon } from "components/common/Icons/"
import { writable } from "svelte/store"
export let layout export let layout
let confirmDeleteDialog let confirmDeleteDialog
let componentToDelete = "" let componentToDelete = ""
const dragDropStore = writable({})
const joinPath = join("/") const joinPath = join("/")
const lastPartOfName = c => const lastPartOfName = c =>
@ -57,7 +59,8 @@
<ComponentsHierarchyChildren <ComponentsHierarchyChildren
thisComponent={_layout.component.props} thisComponent={_layout.component.props}
components={_layout.component.props._children} components={_layout.component.props._children}
currentComponent={$store.currentComponentInfo} /> currentComponent={$store.currentComponentInfo}
{dragDropStore} />
{/if} {/if}
<style> <style>