feat: make setting fields readonly

This commit is contained in:
karishmas6
2024-10-24 03:47:23 +05:30
parent 18f5fb39bc
commit e4cc8ae111

View File

@@ -89,19 +89,25 @@ export const RobotSettingsModal = ({ isOpen, handleStart, handleClose, initialSe
<TextField <TextField
label="Robot Target URL" label="Robot Target URL"
value={robot.recording.workflow[0].where.url} value={robot.recording.workflow[0].where.url}
disabled InputProps={{
readOnly: true,
}}
style={{ marginBottom: '20px' }} style={{ marginBottom: '20px' }}
/> />
<TextField <TextField
label="Robot ID" label="Robot ID"
value={robot.recording_meta.id} value={robot.recording_meta.id}
disabled InputProps={{
readOnly: true,
}}
style={{ marginBottom: '20px' }} style={{ marginBottom: '20px' }}
/> />
<TextField <TextField
label="Robot Created At" label="Robot Created At"
value={robot.recording_meta.createdAt} value={robot.recording_meta.createdAt}
disabled InputProps={{
readOnly: true,
}}
style={{ marginBottom: '20px' }} style={{ marginBottom: '20px' }}
/> />
</> </>