feat: save robot
This commit is contained in:
@@ -87,14 +87,14 @@ export const SaveRecording = ({ fileName }: SaveRecordingProps) => {
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
|
|
||||||
<GenericModal isOpen={openModal} onClose={() => setOpenModal(false)} modalStyle={modalStyle}>
|
<GenericModal isOpen={openModal} onClose={() => setOpenModal(false)} modalStyle={modalStyle}>
|
||||||
<form onSubmit={handleSaveRecording} style={{ paddingTop: '50px', display: 'flex', flexDirection: 'column' }} >
|
<form onSubmit={handleSaveRecording} style={{ paddingTop: '20px', display: 'flex', flexDirection: 'column' }} >
|
||||||
<Typography>Save the recording as:</Typography>
|
<Typography variant="h5">Save the robot as</Typography>
|
||||||
<TextField
|
<TextField
|
||||||
required
|
required
|
||||||
sx={{ width: '250px', paddingBottom: '10px', margin: '15px 0px' }}
|
sx={{ width: '250px', paddingBottom: '10px', margin: '15px 0px' }}
|
||||||
onChange={handleChangeOfTitle}
|
onChange={handleChangeOfTitle}
|
||||||
id="title"
|
id="title"
|
||||||
label="Recording title"
|
label="Robot Name"
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
defaultValue={recordingName ? recordingName : null}
|
defaultValue={recordingName ? recordingName : null}
|
||||||
/>
|
/>
|
||||||
@@ -104,7 +104,7 @@ export const SaveRecording = ({ fileName }: SaveRecordingProps) => {
|
|||||||
<Button color="error" variant="contained" onClick={saveRecording}>Confirm</Button>
|
<Button color="error" variant="contained" onClick={saveRecording}>Confirm</Button>
|
||||||
<WarningText>
|
<WarningText>
|
||||||
<NotificationImportantIcon color="warning" />
|
<NotificationImportantIcon color="warning" />
|
||||||
Recording already exists, please confirm the recording's overwrite.
|
Robot with this name already exists, please confirm the Robot's overwrite.
|
||||||
</WarningText>
|
</WarningText>
|
||||||
</React.Fragment>)
|
</React.Fragment>)
|
||||||
: <Button type="submit" variant="contained">Save</Button>
|
: <Button type="submit" variant="contained">Save</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user