diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte index db0f047fbd..475ec1a54d 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte @@ -3,7 +3,7 @@ import { store, currentAsset } from "builderStore" import ConfirmDialog from "components/common/ConfirmDialog.svelte" import { findComponentParent } from "builderStore/storeUtils" - import { Popover } from "@budibase/bbui" + import { Icon, Popover } from "@budibase/bbui" import { DropdownContainer, DropdownItem } from "components/common/Dropdowns" export let component @@ -30,7 +30,7 @@ if (currentIndex === 0) { return } - const newChildren = parent._children.filter(c => c !== component) + const newChildren = parent._children.filter((c) => c !== component) newChildren.splice(currentIndex - 1, 0, component) parent._children = newChildren store.actions.preview.saveSelected() @@ -46,7 +46,7 @@ if (currentIndex === parent._children.length - 1) { return } - const newChildren = parent._children.filter(c => c !== component) + const newChildren = parent._children.filter((c) => c !== component) newChildren.splice(currentIndex + 1, 0, component) parent._children = newChildren store.actions.preview.saveSelected() @@ -66,56 +66,65 @@ store.actions.components.copy(component, cut) } - const pasteComponent = mode => { + const pasteComponent = (mode) => { // lives in store - also used by drag drop store.actions.components.paste(component, mode) }