From 426377513c47af831e6d11023347daeff81626ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Mon, 26 Apr 2021 12:29:45 +0200 Subject: [PATCH] converts component dropdown to action --- .../ComponentDropdownMenu.svelte | 72 ++++--------------- 1 file changed, 15 insertions(+), 57 deletions(-) diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentDropdownMenu.svelte index 475ec1a54d..b99f0b3cfb 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 { Icon, Popover } from "@budibase/bbui" + import { ActionMenu, MenuItem, MenuSection, Icon, Popover } from "@budibase/bbui" import { DropdownContainer, DropdownItem } from "components/common/Dropdowns" export let component @@ -72,62 +72,20 @@ } -
-
- - - confirmDeleteDialog.show()} - /> - - - - storeComponentForCopy(true)} - /> - storeComponentForCopy(false)} - /> -
- pasteComponent("above")} - /> - pasteComponent("below")} - /> - pasteComponent("inside")} - /> -
-
-
+ +
+ +
+ Delete + Move up + Move down + Duplicate + storeComponentForCopy(true)}>Cut + storeComponentForCopy(false)}>Copy + pasteComponent("above")} disabled={noPaste}>Paste above + pasteComponent("below")} disabled={noPaste}>Paste below + pasteComponent("inside")} disabled={noPaste || noChildrenAllowed}>Paste inside +