From a4c67f1812a780e60cfc9451dd505aff1acc0cff Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 2 Oct 2024 11:11:20 +0100 Subject: [PATCH] Show notification when running row actions in the data section --- .../[application]/data/table/[tableId]/[viewId]/index.svelte | 5 ++--- .../app/[application]/data/table/[tableId]/index.svelte | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/[viewId]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/[viewId]/index.svelte index b5b65b3f1d..eb5e7eb95d 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/[viewId]/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/[viewId]/index.svelte @@ -3,6 +3,7 @@ import { admin, themeStore } from "stores/portal" import { Grid } from "@budibase/frontend-core" import { API } from "api" + import { notifications } from "@budibase/bbui" import GridCreateEditRowModal from "components/backend/DataTable/modals/grid/GridCreateEditRowModal.svelte" import GridFilterButton from "components/backend/DataTable/buttons/grid/GridFilterButton.svelte" import GridManageAccessButton from "components/backend/DataTable/buttons/grid/GridManageAccessButton.svelte" @@ -26,14 +27,12 @@ $: currentTheme = $themeStore?.theme $: darkMode = !currentTheme.includes("light") - $: currentTheme = $themeStore?.theme - $: darkMode = !currentTheme.includes("light") - const makeRowActionButtons = actions => { return (actions || []).map(action => ({ text: action.name, onClick: async row => { await rowActions.trigger(id, action.id, row._id) + notifications.success("Row action triggered successfully") }, })) } diff --git a/packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/index.svelte index b9b58cbfce..24851c723d 100644 --- a/packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/data/table/[tableId]/index.svelte @@ -1,5 +1,5 @@