diff --git a/web/components/modules/delete-module-modal.tsx b/web/components/modules/delete-module-modal.tsx index 3cb5942ee..3505d1447 100644 --- a/web/components/modules/delete-module-modal.tsx +++ b/web/components/modules/delete-module-modal.tsx @@ -45,6 +45,11 @@ export const DeleteModuleModal: React.FC = observer((props) => { .then(() => { if (moduleId) router.push(`/${workspaceSlug}/projects/${data.project}/modules`); handleClose(); + setToastAlert({ + type: "success", + title: "Success!", + message: "Module deleted successfully.", + }); }) .catch(() => { setToastAlert({ diff --git a/web/components/project/delete-project-modal.tsx b/web/components/project/delete-project-modal.tsx index a40e37403..eb8a21469 100644 --- a/web/components/project/delete-project-modal.tsx +++ b/web/components/project/delete-project-modal.tsx @@ -62,6 +62,11 @@ export const DeleteProjectModal: React.FC = (props) => { if (projectId && projectId.toString() === project.id) router.push(`/${workspaceSlug}/projects`); handleClose(); + setToastAlert({ + type: "success", + title: "Success!", + message: "Project deleted successfully.", + }); }) .catch(() => { setToastAlert({ diff --git a/web/components/views/modal.tsx b/web/components/views/modal.tsx index fb1e9c2c6..02a2b8ec7 100644 --- a/web/components/views/modal.tsx +++ b/web/components/views/modal.tsx @@ -32,7 +32,14 @@ export const CreateUpdateProjectViewModal: FC = observer((props) => { const createView = async (payload: IProjectView) => { await projectViewsStore .createView(workspaceSlug, projectId, payload) - .then(() => handleClose()) + .then(() => { + handleClose(); + setToastAlert({ + type: "success", + title: "Success!", + message: "View created successfully.", + }); + }) .catch(() => setToastAlert({ type: "error",