From 78e41a51c0f28ebc93164aaf2a2a8f08bbe7eaf4 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Thu, 1 Aug 2024 17:29:16 -0400 Subject: [PATCH] update workspace to project --- frontend/src/layouts/AppLayout/AppLayout.tsx | 4 ++-- frontend/src/pages/org/[id]/overview/index.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx index f5f8b5449..87d4c8458 100644 --- a/frontend/src/layouts/AppLayout/AppLayout.tsx +++ b/frontend/src/layouts/AppLayout/AppLayout.tsx @@ -286,12 +286,12 @@ export const AppLayout = ({ children }: LayoutProps) => { // eslint-disable-next-line no-promise-executor-return -- We do this because the function returns too fast, which sometimes causes an error when the user is redirected. await new Promise((resolve) => setTimeout(resolve, 2_000)); - createNotification({ text: "Workspace created", type: "success" }); + createNotification({ text: "Project created", type: "success" }); handlePopUpClose("addNewWs"); router.push(`/project/${newProjectId}/secrets/overview`); } catch (err) { console.error(err); - createNotification({ text: "Failed to create workspace", type: "error" }); + createNotification({ text: "Failed to create project", type: "error" }); } }; diff --git a/frontend/src/pages/org/[id]/overview/index.tsx b/frontend/src/pages/org/[id]/overview/index.tsx index 251c36a26..a6256f596 100644 --- a/frontend/src/pages/org/[id]/overview/index.tsx +++ b/frontend/src/pages/org/[id]/overview/index.tsx @@ -565,11 +565,11 @@ const OrganizationPage = withPermission( await new Promise((resolve) => setTimeout(resolve, 2_000)); handlePopUpClose("addNewWs"); - createNotification({ text: "Workspace created", type: "success" }); + createNotification({ text: "Project created", type: "success" }); router.push(`/project/${newProjectId}/secrets/overview`); } catch (err) { console.error(err); - createNotification({ text: "Failed to create workspace", type: "error" }); + createNotification({ text: "Failed to create project", type: "error" }); } };