diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/controls/ValidationModal.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/components/controls/ValidationModal.tsx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/ValidationModal.tsx b/server/sonar-web/src/main/js/components/controls/ValidationModal.tsx index b7ce11c020a..4ad1eb99ceb 100644 --- a/server/sonar-web/src/main/js/components/controls/ValidationModal.tsx +++ b/server/sonar-web/src/main/js/components/controls/ValidationModal.tsx @@ -49,12 +49,14 @@ export default class ValidationModal<V extends FormikValues> extends React.PureC contentLabel={this.props.header} noBackdrop={this.props.noBackdrop} onRequestClose={this.props.onClose} - size={this.props.size}> + size={this.props.size} + > <ValidationForm initialValues={this.props.initialValues} onSubmit={this.handleSubmit} - validate={this.props.validate}> - {props => ( + validate={this.props.validate} + > + {(props) => ( <> <header className="modal-head"> <h2>{this.props.header}</h2> @@ -66,7 +68,8 @@ export default class ValidationModal<V extends FormikValues> extends React.PureC <DeferredSpinner className="spacer-right" loading={props.isSubmitting} /> <SubmitButton className={this.props.isDestructive ? 'button-red' : undefined} - disabled={props.isSubmitting || !props.isValid || !props.dirty}> + disabled={props.isSubmitting || !props.isValid || !props.dirty} + > {this.props.confirmButtonText} </SubmitButton> <ResetButtonLink disabled={props.isSubmitting} onClick={this.props.onClose}> |