fix(ui): info notification when secret change is pending review

This commit is contained in:
Daniel Hougaard
2024-09-04 19:57:32 +04:00
parent 04cbbccd25
commit 5d894b6d43
2 changed files with 4 additions and 3 deletions

View File

@@ -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"

View File

@@ -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"