disable url textbox and hide protocol buttons in edit mode

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-03-15 00:30:00 -04:00
1 parent 9e773f6917
commit 2e449269de
1 file changed
+3
@@ -314,7 +314,9 @@ const CreateInfrastructureMonitor = () => {
onChange={handleChange}
error={errors["url"] ? true : false}
helperText={errors["url"]}
disabled={!isCreate}
/>
{isCreate && (
<Box>
<Typography component="p">{t("infrastructureProtocol")}</Typography>
<ButtonGroup>
@@ -334,6 +336,7 @@ const CreateInfrastructureMonitor = () => {
</Button>
</ButtonGroup>
</Box>
)}
<TextInput
type="text"
id="name"