From 7f70fa3c0b3a60ad68c797b4b80335fbb82aa4ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Mon, 26 Apr 2021 13:44:26 +0200 Subject: [PATCH] convert ScreenDropdown to use ActionMenu --- .../ScreenDropdownMenu.svelte | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte index 685e3a54e4..c7295e9032 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte @@ -3,7 +3,7 @@ import { store, allScreens } from "builderStore" import { notifications } from "@budibase/bbui" import ConfirmDialog from "components/common/ConfirmDialog.svelte" - import { Icon, Popover } from "@budibase/bbui" + import { ActionMenu, MenuItem, Icon, Popover } from "@budibase/bbui" import { DropdownContainer, DropdownItem } from "components/common/Dropdowns" export let screenId @@ -25,22 +25,20 @@ notifications.error("Error deleting screen") } } + + const openModal = () => { + confirmDeleteDialog.show() + dropdown.hide() + } -
-
dropdown.show()}> + +
- - - confirmDeleteDialog.show()} - /> - - -
+ Delete + +