isActive -> stauts === paused
This commit is contained in:
1 parent
f40667615e
commit
196ebc30dc
10 files changed
+16
-22
No files matched your search
@@ -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} />;
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user