diff --git a/packages/bbui/src/ActionMenu/ActionMenu.svelte b/packages/bbui/src/ActionMenu/ActionMenu.svelte index 26da96c6e6..c412a2d2c1 100644 --- a/packages/bbui/src/ActionMenu/ActionMenu.svelte +++ b/packages/bbui/src/ActionMenu/ActionMenu.svelte @@ -28,7 +28,7 @@ - + diff --git a/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditDatasourcePopover.svelte b/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditDatasourcePopover.svelte index a2403b945b..ae3fe24888 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditDatasourcePopover.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditDatasourcePopover.svelte @@ -32,8 +32,8 @@ } - -
+ +
Delete diff --git a/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditQueryPopover.svelte b/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditQueryPopover.svelte index 326893ff59..ff96745a6f 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditQueryPopover.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/popovers/EditQueryPopover.svelte @@ -12,11 +12,6 @@ dropdown?.hide() } - function showModal() { - hideEditor() - confirmDeleteDialog.show() - } - async function deleteQuery() { await queries.delete(query) notifications.success("Query deleted") @@ -24,8 +19,8 @@ } - -
+ +
Delete diff --git a/packages/builder/src/components/backend/TableNavigator/popovers/EditTablePopover.svelte b/packages/builder/src/components/backend/TableNavigator/popovers/EditTablePopover.svelte index 7144912536..de656454d4 100644 --- a/packages/builder/src/components/backend/TableNavigator/popovers/EditTablePopover.svelte +++ b/packages/builder/src/components/backend/TableNavigator/popovers/EditTablePopover.svelte @@ -26,16 +26,6 @@ let templateScreens let willBeDeleted - function showEditor() { - editorModal.show() - dropdown?.hide() - } - - function hideEditor() { - editorModal.hide() - dropdown?.hide() - } - function showDeleteModal() { const screens = $allScreens templateScreens = screens.filter( @@ -44,7 +34,6 @@ willBeDeleted = ["All table data"].concat( templateScreens.map((screen) => `Screen ${screen.props._instanceName}`) ) - hideEditor() confirmDeleteDialog.show() } @@ -57,13 +46,13 @@ if (wasSelectedTable._id === table._id) { $goto("./table") } - hideEditor() + editorModal.hide() } async function save() { await tables.save(table) notifications.success("Table renamed successfully") - hideEditor() + editorModal.hide() } function checkValid(evt) { @@ -75,12 +64,12 @@ } - -
+ +
- Edit - Delete + Edit + Delete