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:
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)}
|
||||
>
|
||||
{row?.name}
|
||||
{row.locations && row.locations.length > 0 && (
|
||||
<Tooltip title={`${row.locations.length} ${t("pages.uptime.table.headers.locations").toLowerCase()}: ${row.locations.join(", ")}`}>
|
||||
{row.globalpingEnabled && (
|
||||
<Tooltip title={t("pages.uptime.table.headers.globalpingEnabled")}>
|
||||
<Globe size={14} />
|
||||
</Tooltip>
|
||||
)}
|
||||
|
||||
@@ -1158,7 +1158,8 @@
|
||||
"table": {
|
||||
"headers": {
|
||||
"responseTime": "Response time",
|
||||
"locations": "Locations"
|
||||
"locations": "Locations",
|
||||
"globalpingEnabled": "Global monitoring enabled"
|
||||
}
|
||||
},
|
||||
"fallback": {
|
||||
|
||||
Reference in new issue
Block a user