From d4e72ee8a6938031f92b7b2e9a39e5ba4ce038d0 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 18 Feb 2026 21:02:08 +0000 Subject: [PATCH] url settigns --- client/src/Pages/Settings/index.tsx | 36 +++++++++++++++++++++++++++-- client/src/locales/en.json | 22 ++++++++++++++++++ 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/client/src/Pages/Settings/index.tsx b/client/src/Pages/Settings/index.tsx index d0ad5a6e0..b71f353d1 100644 --- a/client/src/Pages/Settings/index.tsx +++ b/client/src/Pages/Settings/index.tsx @@ -13,8 +13,8 @@ import { useIsAdmin } from "@/Hooks/useIsAdmin.js"; import type { SettingsFormData } from "@/Validation/settings"; import { useState } from "react"; import { Controller } from "react-hook-form"; -import { TextField, FieldLabel, Button } from "@/Components/v2/inputs"; -import { Typography, Box } from "@mui/material"; +import { TextField, Button, FieldLabel } from "@/Components/v2/inputs"; +import { Box } from "@mui/material"; import { setTimezone, @@ -268,6 +268,38 @@ export const SettingsPage = () => { } /> )} + + {/* URL Settings */} + ( + + )} + /> + } + /> {/* Sticky Save Button */} diff --git a/client/src/locales/en.json b/client/src/locales/en.json index 75b4eafc3..c33d3dbfd 100644 --- a/client/src/locales/en.json +++ b/client/src/locales/en.json @@ -544,6 +544,17 @@ "label": "Temperature alert threshold (°C)" } } + }, + "url": { + "title": "Monitor IP/URL on Status Page", + "description": "Display the IP address or URL of monitor on the public Status page. If it's disabled, only the monitor name will be shown to protect sensitive information.", + "option": { + "showURL": { + "label": "Display IP/URL on status page", + "enabled": "Enabled", + "disabled": "Disabled" + } + } } } }, @@ -948,6 +959,17 @@ "placeholder": "Enter your Google PageSpeed API key" } } + }, + "url": { + "title": "Monitor IP/URL on Status Page", + "description": "Display the IP address or URL of monitor on the public Status page. If it's disabled, only the monitor name will be shown to protect sensitive information.", + "option": { + "showURL": { + "label": "Display IP/URL on status page", + "enabled": "Enabled", + "disabled": "Disabled" + } + } } } },