ping type globalping checks
This commit is contained in:
1 parent
188445c57a
commit
124a8c0b07
9 files changed
+80
-40
No files matched your search
@@ -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")}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user