Skip to content

Commit

Permalink
removed unused items
Browse files Browse the repository at this point in the history
  • Loading branch information
fhernandezvivanco committed Feb 17, 2025
1 parent 31f56b1 commit 7cde9a0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 26 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/src/components/SampleQueue/WorkflowTaskItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class WorkflowTaskItem extends Component {
>
<a href={link} target="_blank" rel="noreferrer">
{' '}
View Results in ISPyB
View Results in MX-PRISM
</a>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/Tasks/GenericTaskForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class GenericTaskForm extends React.Component {
<Modal.Title>{this.props.taskData.parameters.name}</Modal.Title>
</Modal.Header>
<Modal.Body>
<Form>
{/* <Form>
<StaticField label="Path" data={this.props.path} />
<StaticField label="Filename" data={this.props.filename} />
<Row className="mb-2">
Expand Down Expand Up @@ -329,7 +329,7 @@ class GenericTaskForm extends React.Component {
</Col>
) : null}
</Row>
</Form>
</Form> */}

<FieldsHeader title="Acquisition" />
<div className="json-schema-form-container">
Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/Tasks/Workflow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Workflow(props) {
<Modal.Body>
<Form>
<StaticField label="Path" data={props.path} />
<StaticField label="Filename" data={props.filename} />
{/* <StaticField label="Filename" data={props.filename} />
<Row className="mt-3">
<InputField
propName="subdir"
Expand Down Expand Up @@ -88,7 +88,7 @@ function Workflow(props) {
col2={7}
/>
</div>
)}
)} */}
</Form>
</Modal.Body>

Expand Down
26 changes: 6 additions & 20 deletions ui/src/containers/WorkflowParametersDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,16 @@ function WorkflowParametersDialog() {
dispatch(showWorkflowParametersDialog(null, false));
}

useEffect(() => {
function handleKeyDown(event) {
if (event.key === 'Escape') {
event.preventDefault();
}
}

if (show) {
window.addEventListener('keydown', handleKeyDown);
} else {
window.removeEventListener('keydown', handleKeyDown);
}

return () => {
window.removeEventListener('keydown', handleKeyDown);
};
}, [show]);
function handleClose() {
dispatch(submitWorkflowParameters({}));
dispatch(showWorkflowParametersDialog(null, false));
}

return (
<Modal
show={show}
onHide={() => dispatch(showWorkflowParametersDialog(null, false))}
onHide={handleClose}
backdrop="static"
keyboard={false} // Prevent closing with Escape key
>
<Modal.Header closeButton>
<Modal.Title>{formData ? formData.dialogName : ''}</Modal.Title>
Expand All @@ -59,7 +45,7 @@ function WorkflowParametersDialog() {
schema={formData}
formData={formData.initialValues}
onSubmit={submitData}
onError={console.log('onError message???')} // eslint-disable-line no-console
onError={console.log('error')} // eslint-disable-line no-console
/>
</div>
)}
Expand Down

0 comments on commit 7cde9a0

Please sign in to comment.