diff --git a/src/ImageRunModal.jsx b/src/ImageRunModal.jsx index 0c4d7335a..1a63c94e2 100644 --- a/src/ImageRunModal.jsx +++ b/src/ImageRunModal.jsx @@ -1166,29 +1166,22 @@ export class ImageRunModal extends React.Component { ); - const cardFooter = () => { - let createRunText = _("Create and run"); - let createText = _("Create"); - - if (this.props.prefill) { - createRunText = _("Clone and run"); - createText = _("Clone"); - } - - return ( - <> - this.onCreateClicked(true)} isDisabled={(!image && selectedImage === "")}> - {createRunText} - - this.onCreateClicked(false)} isDisabled={(!image && selectedImage === "")}> - {createText} - - - {_("Cancel")} - - > - ); - }; + const createRunText = this.props.prefill ? _("Clone and run") : _("Create and run"); + const createText = this.props.prefill ? _("Clone") : _("Create"); + + const runModalFooter = ( + <> + this.onCreateClicked(true)} isDisabled={(!image && selectedImage === "")}> + {createRunText} + + this.onCreateClicked(false)} isDisabled={(!image && selectedImage === "")}> + {createText} + + + {_("Cancel")} + + > + ); return ( {defaultBody} diff --git a/src/Notification.jsx b/src/Notification.jsx index 8333a15a4..6cc553d48 100644 --- a/src/Notification.jsx +++ b/src/Notification.jsx @@ -47,7 +47,7 @@ export const ErrorNotification = ({ errorMessage, errorDetail, onDismiss }) => { export const WarningNotification = ({ warningMessage, warningDetail }) => { return ( - { warningDetail && {_("Warning message")}: {warningDetail} } + { warningDetail && {warningDetail} } ); };
{_("Warning message")}: {warningDetail}
{warningDetail}