diff --git a/ui/src/components/BeamlineActions/AnnotatedBeamlineActionDialog.jsx b/ui/src/components/BeamlineActions/AnnotatedBeamlineActionDialog.jsx index d53d5db46..f9ebe5eae 100644 --- a/ui/src/components/BeamlineActions/AnnotatedBeamlineActionDialog.jsx +++ b/ui/src/components/BeamlineActions/AnnotatedBeamlineActionDialog.jsx @@ -48,67 +48,63 @@ export default function AnnotatedBeamlineActionDialog(props) { ); } - - if (isDialogVisble) { - return ( - - - {actionName} - - - - -
- { - handleStartAction(actionId, formData); - }} - > - {getRunButton(isActionRunning)} - -
- - - - - - - {actionMessages.length > 0 ? ( - - {actionMessages.map((message) => ( - // eslint-disable-next-line react/jsx-key -

{message.message}

- ))} -
- ) : ( - '' - )} - -
-
- - - -
- ); - } - return null; + return ( + + + {actionName} + + + + +
+ { + handleStartAction(actionId, formData); + }} + > + {getRunButton(isActionRunning)} + +
+ + + + + + + {actionMessages.length > 0 ? ( + + {actionMessages.map((message) => ( + // eslint-disable-next-line react/jsx-key +

{message.message}

+ ))} +
+ ) : ( + '' + )} + +
+
+ + + +
+ ); } diff --git a/ui/src/containers/BeamlineActionsContainer.jsx b/ui/src/containers/BeamlineActionsContainer.jsx index f67f17f01..2aa0e9037 100644 --- a/ui/src/containers/BeamlineActionsContainer.jsx +++ b/ui/src/containers/BeamlineActionsContainer.jsx @@ -130,7 +130,8 @@ class BeamlineActionsContainer extends React.Component { handleOnPlotDisplay={this.newPlotDisplayed} plotId={this.plotIdByAction[currentActionName]} /> - ) : ( + ) : null} + {this.props.currentAction.argument_type === 'JSONSchema' ? ( - )} + ) : null} ); }