mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 10:28:00 +00:00
Fix success notification message on reminder updates
This commit is contained in:
+2
-1
@@ -238,12 +238,13 @@ export const SecretListView = ({
|
|||||||
if (!isReminderEvent) {
|
if (!isReminderEvent) {
|
||||||
handlePopUpClose("secretDetail");
|
handlePopUpClose("secretDetail");
|
||||||
}
|
}
|
||||||
|
const successMessage = isReminderEvent ? "secret reminder" : "secrets";
|
||||||
createNotification({
|
createNotification({
|
||||||
type: isProtectedBranch && !personalAction ? "info" : "success",
|
type: isProtectedBranch && !personalAction ? "info" : "success",
|
||||||
text:
|
text:
|
||||||
isProtectedBranch && !personalAction
|
isProtectedBranch && !personalAction
|
||||||
? "Requested changes have been sent for review"
|
? "Requested changes have been sent for review"
|
||||||
: "Successfully saved secrets"
|
: `Successfully saved ${successMessage}`
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|||||||
Reference in New Issue
Block a user