Merge pull request #2376 from Infisical/daniel/info-notif-for-secret-changes

fix(ui): show info notification when secret change is pending review
This commit is contained in:
Daniel Hougaard
2024-09-04 20:09:58 +04:00
committed by GitHub
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"