Skip to content

Commit

Permalink
Refinements to jupyter modal #10949 (#4968)
Browse files Browse the repository at this point in the history
* Refinements to the Jupyter modal. Closes #10949

* Renamed Session to Notebook. Closes #10949
  • Loading branch information
gautamsarawagi authored Aug 19, 2024
1 parent 4ebcaed commit b1a387c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/pages/staticPages/tools/oncoprinter/JupyterNotebookModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ class JupyterNoteBookModal extends React.Component<
return (
<Modal show={show} onHide={handleClose}>
<Modal.Header closeButton>
<Modal.Title>Enter Session Name</Modal.Title>
<Modal.Title>Enter Notebook Name</Modal.Title>
</Modal.Header>
<Modal.Body>
<Form
id="jupyterform"
onSubmit={e =>
this.handleSubmit(
(e as unknown) as React.FormEvent<
Expand All @@ -113,11 +114,11 @@ class JupyterNoteBookModal extends React.Component<
>
<FormGroup controlId="formFolderName">
<ControlLabel className="py-2">
Session Name
Notebook Name
</ControlLabel>
<FormControl
type="text"
placeholder="Enter Session Name"
placeholder="Enter Notebook Name"
value={folderName}
onChange={e =>
this.handleChange(
Expand All @@ -134,12 +135,14 @@ class JupyterNoteBookModal extends React.Component<
</div>
)}
</FormGroup>
<Modal.Footer>
<Button onClick={handleClose}>Close</Button>
<Button type="submit">Open Jupyter Notebook</Button>
</Modal.Footer>
</Form>
</Modal.Body>
<Modal.Footer>
<Button onClick={handleClose}>Close</Button>
<Button type="submit" form="jupyterform">
Open Jupyter Notebook
</Button>
</Modal.Footer>
</Modal>
);
}
Expand Down

0 comments on commit b1a387c

Please sign in to comment.