add port input field when editing port monitors

This commit is contained in:
Vishnu Sreekumaran Nair
2025-05-01 13:22:55 -04:00
parent d76e3d42a1
commit a750176037

View File

@@ -371,6 +371,17 @@ const Configure = () => {
value={parsedUrl?.host || monitor?.url || ""}
disabled={true}
/>
<TextInput
type="number"
id="monitor-port"
label={t("portToMonitor")}
placeholder="5173"
value={monitor.port || ""}
onChange={(event) => handleChange(event, "port")}
error={errors["port"] ? true : false}
helperText={errors["port"]}
hidden={monitor.type !== "port"}
/>
<TextInput
type="text"
id="monitor-name"