From 17a46748216f57a0548b58cff944f66122effb2d Mon Sep 17 00:00:00 2001 From: carlosmonastyrski Date: Mon, 3 Mar 2025 17:04:02 -0300 Subject: [PATCH] Fix success notification message on reminder updates --- .../components/SecretListView/SecretListView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretListView.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretListView.tsx index 72367aba8..acfb44f30 100644 --- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretListView.tsx +++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretListView.tsx @@ -238,12 +238,13 @@ export const SecretListView = ({ if (!isReminderEvent) { handlePopUpClose("secretDetail"); } + const successMessage = isReminderEvent ? "secret reminder" : "secrets"; createNotification({ type: isProtectedBranch && !personalAction ? "info" : "success", text: isProtectedBranch && !personalAction ? "Requested changes have been sent for review" - : "Successfully saved secrets" + : `Successfully saved ${successMessage}` }); } catch (error) { console.log(error);