extract success toast message strings
This commit is contained in:
1 parent
ced3ad1757
commit
139ae00613
2 files changed
+3
-1
No files matched your search
@@ -199,7 +199,7 @@ const CreateInfrastructureMonitor = () => {
|
|||||||
: await dispatch(updateInfrastructureMonitor({ monitorId, monitor: form }));
|
: await dispatch(updateInfrastructureMonitor({ monitorId, monitor: form }));
|
||||||
if (action.meta.requestStatus === "fulfilled") {
|
if (action.meta.requestStatus === "fulfilled") {
|
||||||
createToast({
|
createToast({
|
||||||
body: isCreate ? "Infrastructure monitor created successfully!" : "Infrastructure monitor updated successfully!",
|
body: isCreate ? t("infrastructureMonitorCreated") : t("infrastructureMonitorUpdated"),
|
||||||
});
|
});
|
||||||
navigate("/infrastructure");
|
navigate("/infrastructure");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -326,6 +326,8 @@
|
|||||||
"infrastructureAlertNotificationDescription": "Send a notification to user(s) when thresholds exceed a specified percentage.",
|
"infrastructureAlertNotificationDescription": "Send a notification to user(s) when thresholds exceed a specified percentage.",
|
||||||
"infrastructureCreateMonitor": "Create Infrastructure Monitor",
|
"infrastructureCreateMonitor": "Create Infrastructure Monitor",
|
||||||
"infrastructureEditMonitor": "Save Infrastructure Monitor",
|
"infrastructureEditMonitor": "Save Infrastructure Monitor",
|
||||||
|
"infrastructureMonitorCreated": "Infrastructure monitor created successfully!",
|
||||||
|
"infrastructureMonitorUpdated": "Infrastructure monitor updated successfully!",
|
||||||
"infrastructureProtocol": "Protocol",
|
"infrastructureProtocol": "Protocol",
|
||||||
"infrastructureServerUrlLabel": "Server URL",
|
"infrastructureServerUrlLabel": "Server URL",
|
||||||
"infrastructureDisplayNameLabel": "Display name",
|
"infrastructureDisplayNameLabel": "Display name",
|
||||||
|
|||||||
Reference in new issue
Block a user