fix: show globe icon based on globalpingEnabled instead of locations array

The globe icon in the monitor list was checking row.locations.length,
but locations are no longer stored per-monitor. Updated to check
row.globalpingEnabled and show a "Global monitoring enabled" tooltip.
This commit is contained in:
gorkem-bwl committed 2026-02-19 12:14:52 -05:00
1 parent 4ca24c794e
commit bfdf28a2cc
2 files changed
+4 -3

No files matched your search

@@ -175,8 +175,8 @@ export const MonitorTable = ({
gap={theme.spacing(2)} gap={theme.spacing(2)}
> >
{row?.name} {row?.name}
{row.locations && row.locations.length > 0 && ( {row.globalpingEnabled && (
<Tooltip title={`${row.locations.length} ${t("pages.uptime.table.headers.locations").toLowerCase()}: ${row.locations.join(", ")}`}> <Tooltip title={t("pages.uptime.table.headers.globalpingEnabled")}>
<Globe size={14} /> <Globe size={14} />
</Tooltip> </Tooltip>
)} )}
+2 -1
View File
@@ -1158,7 +1158,8 @@
"table": { "table": {
"headers": { "headers": {
"responseTime": "Response time", "responseTime": "Response time",
"locations": "Locations" "locations": "Locations",
"globalpingEnabled": "Global monitoring enabled"
} }
}, },
"fallback": { "fallback": {