ping type globalping checks

This commit is contained in:
Alex Holliday committed 2026-03-06 10:37:29 -08:00
1 parent 188445c57a
commit 124a8c0b07
9 files changed
+80 -40

No files matched your search

+1 -1
View File
@@ -885,7 +885,7 @@ const CreateMonitorPage = () => {
/>
)}
{watchedType === "http" && (
{(watchedType === "http" || watchedType === "ping") && (
<ConfigBox
title={t("pages.createMonitor.form.geoChecks.title")}
subtitle={t("pages.createMonitor.form.geoChecks.description")}
+10 -2
View File
@@ -122,7 +122,11 @@ const UptimeDetailsPage = () => {
);
const geoChecksUrl = useMemo(() => {
if (!monitorId || monitor?.type !== "http" || !monitor?.geoCheckEnabled) {
if (
!monitorId ||
(monitor?.type !== "http" && monitor?.type !== "ping") ||
!monitor?.geoCheckEnabled
) {
return null;
}
const params = new URLSearchParams();
@@ -141,7 +145,11 @@ const UptimeDetailsPage = () => {
// Fetch paginated geo checks for the table
const geoChecksTableUrl = useMemo(() => {
if (!monitorId || monitor?.type !== "http" || !monitor?.geoCheckEnabled) {
if (
!monitorId ||
(monitor?.type !== "http" && monitor?.type !== "ping") ||
!monitor?.geoCheckEnabled
) {
return null;
}
const params = new URLSearchParams();