diff --git a/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx b/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx index c095ce47b..1354034a8 100644 --- a/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx +++ b/frontend/src/views/SecretMainPage/components/CreateSecretForm/CreateSecretForm.tsx @@ -61,8 +61,9 @@ export const CreateSecretForm = ({ }); closePopUp(PopUpNames.CreateSecretForm); reset(); + createNotification({ - type: "success", + type: isProtectedBranch ? "info" : "success", text: isProtectedBranch ? "Requested changes have been sent for review" : "Successfully created secret" diff --git a/frontend/src/views/SecretMainPage/components/SecretListView/SecretListView.tsx b/frontend/src/views/SecretMainPage/components/SecretListView/SecretListView.tsx index 0e58be0c3..8bf699b0d 100644 --- a/frontend/src/views/SecretMainPage/components/SecretListView/SecretListView.tsx +++ b/frontend/src/views/SecretMainPage/components/SecretListView/SecretListView.tsx @@ -270,7 +270,7 @@ export const SecretListView = ({ queryClient.invalidateQueries(secretApprovalRequestKeys.count({ workspaceId })); handlePopUpClose("secretDetail"); createNotification({ - type: "success", + type: isProtectedBranch ? "info" : "success", text: isProtectedBranch ? "Requested changes have been sent for review" : "Successfully saved secrets" @@ -304,7 +304,7 @@ export const SecretListView = ({ handlePopUpClose("deleteSecret"); handlePopUpClose("secretDetail"); createNotification({ - type: "success", + type: isProtectedBranch ? "info" : "success", text: isProtectedBranch ? "Requested changes have been sent for review" : "Successfully deleted secret"