Merge pull request #2249 from Br0wnHammer/fix/infra-monitor-filters
Fix: Infra Monitors Filters
This commit is contained in:
2 files changed
+12
-3
No files matched your search
@@ -68,8 +68,16 @@ const MonitorsTable = ({ shouldRender, monitors, isAdmin, handleActionMenuDelete
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{ id: "cpu", content: t("cpu"), render: (row) => <CustomGauge progress={row.cpu} /> },
|
{ id: "cpu", content: t("cpu"), render: (row) => <CustomGauge progress={row.cpu} /> },
|
||||||
{ id: "memory", content: t("memory"), render: (row) => <CustomGauge progress={row.mem} /> },
|
{
|
||||||
{ id: "disk", content: t("disk"), render: (row) => <CustomGauge progress={row.disk} /> },
|
id: "memory",
|
||||||
|
content: t("memory"),
|
||||||
|
render: (row) => <CustomGauge progress={row.mem} />,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "disk",
|
||||||
|
content: t("disk"),
|
||||||
|
render: (row) => <CustomGauge progress={row.disk} />,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: "actions",
|
id: "actions",
|
||||||
content: t("actions"),
|
content: t("actions"),
|
||||||
@@ -129,6 +137,7 @@ const MonitorsTable = ({ shouldRender, monitors, isAdmin, handleActionMenuDelete
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
onRowClick: (row) => openDetails(row.id),
|
onRowClick: (row) => openDetails(row.id),
|
||||||
|
emptyView: "No monitors found",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ const InfrastructureMonitors = () => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isLoading && monitors?.length === 0) {
|
if (!isLoading && typeof summary?.totalMonitors === "undefined" ) {
|
||||||
return (
|
return (
|
||||||
<Fallback
|
<Fallback
|
||||||
vowelStart={true}
|
vowelStart={true}
|
||||||
|
|||||||
Reference in new issue
Block a user