disable url textbox and hide protocol buttons in edit mode
This commit is contained in:
1 parent
9e773f6917
commit
2e449269de
1 file changed
+3
@@ -314,7 +314,9 @@ const CreateInfrastructureMonitor = () => {
|
|||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
error={errors["url"] ? true : false}
|
error={errors["url"] ? true : false}
|
||||||
helperText={errors["url"]}
|
helperText={errors["url"]}
|
||||||
|
disabled={!isCreate}
|
||||||
/>
|
/>
|
||||||
|
{isCreate && (
|
||||||
<Box>
|
<Box>
|
||||||
<Typography component="p">{t("infrastructureProtocol")}</Typography>
|
<Typography component="p">{t("infrastructureProtocol")}</Typography>
|
||||||
<ButtonGroup>
|
<ButtonGroup>
|
||||||
@@ -334,6 +336,7 @@ const CreateInfrastructureMonitor = () => {
|
|||||||
</Button>
|
</Button>
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
</Box>
|
</Box>
|
||||||
|
)}
|
||||||
<TextInput
|
<TextInput
|
||||||
type="text"
|
type="text"
|
||||||
id="name"
|
id="name"
|
||||||
|
|||||||
Reference in new issue
Block a user