extract success toast message strings

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-03-19 15:55:39 -04:00
1 parent ced3ad1757
commit 139ae00613
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -199,7 +199,7 @@ const CreateInfrastructureMonitor = () => {
: await dispatch(updateInfrastructureMonitor({ monitorId, monitor: form }));
if (action.meta.requestStatus === "fulfilled") {
createToast({
body: isCreate ? "Infrastructure monitor created successfully!" : "Infrastructure monitor updated successfully!",
body: isCreate ? t("infrastructureMonitorCreated") : t("infrastructureMonitorUpdated"),
});
navigate("/infrastructure");
} else {
+2
View File
@@ -326,6 +326,8 @@
"infrastructureAlertNotificationDescription": "Send a notification to user(s) when thresholds exceed a specified percentage.",
"infrastructureCreateMonitor": "Create Infrastructure Monitor",
"infrastructureEditMonitor": "Save Infrastructure Monitor",
"infrastructureMonitorCreated": "Infrastructure monitor created successfully!",
"infrastructureMonitorUpdated": "Infrastructure monitor updated successfully!",
"infrastructureProtocol": "Protocol",
"infrastructureServerUrlLabel": "Server URL",
"infrastructureDisplayNameLabel": "Display name",