From 2e449269de9d8d5b2d4aabf2ca33da2ee5098067 Mon Sep 17 00:00:00 2001 From: Vishnu Sreekumaran Nair <200557136@student.georgianc.on.ca> Date: Sat, 15 Mar 2025 00:30:00 -0400 Subject: [PATCH] disable url textbox and hide protocol buttons in edit mode --- src/Pages/Infrastructure/Create/index.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Pages/Infrastructure/Create/index.jsx b/src/Pages/Infrastructure/Create/index.jsx index c291b04b5..feea6db7a 100644 --- a/src/Pages/Infrastructure/Create/index.jsx +++ b/src/Pages/Infrastructure/Create/index.jsx @@ -314,7 +314,9 @@ const CreateInfrastructureMonitor = () => { onChange={handleChange} error={errors["url"] ? true : false} helperText={errors["url"]} + disabled={!isCreate} /> + {isCreate && ( {t("infrastructureProtocol")} @@ -334,6 +336,7 @@ const CreateInfrastructureMonitor = () => { + )}