isActive -> stauts === paused

This commit is contained in:
Alex Holliday committed 2025-11-19 19:06:04 +00:00
1 parent f40667615e
commit 196ebc30dc
10 files changed
+16 -22

No files matched your search

+2 -2
View File
@@ -97,7 +97,7 @@ export const MonitorTable = ({
// },
{
id: 6,
label: monitor.isActive ? "Pause" : "Resume",
label: monitor.status === "paused" ? "Resume" : "Pause",
action: async () => {
await patch(`/monitors/${monitor._id}/active`);
refetch();
@@ -128,7 +128,7 @@ export const MonitorTable = ({
id: "status",
content: t("status"),
render: (row) => {
return <StatusLabel status={row.status} isActive={row.isActive} />;
return <StatusLabel status={row.status} />;
},
},
{