aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-19 16:32:38 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-10-23 08:01:13 -0700
commit2d568ff3830cef88392656119bd2485a9ae9c8e1 (patch)
treecafc42c69e89ab3448d5bd22a3d4f4a940ee37df /server/sonar-web/src/main
parent373902cba184cd04ccde5b85073ccc25a415f1fe (diff)
downloadsonarqube-2d568ff3830cef88392656119bd2485a9ae9c8e1.tar.gz
sonarqube-2d568ff3830cef88392656119bd2485a9ae9c8e1.zip
Prevent from leaving the restart server form when restarting
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r--server/sonar-web/src/main/js/components/common/RestartForm.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/common/RestartForm.tsx b/server/sonar-web/src/main/js/components/common/RestartForm.tsx
index 43e12ab31f1..98f4301ef39 100644
--- a/server/sonar-web/src/main/js/components/common/RestartForm.tsx
+++ b/server/sonar-web/src/main/js/components/common/RestartForm.tsx
@@ -59,7 +59,8 @@ export default class RestartForm extends React.PureComponent<Props, State> {
contentLabel={header}
className="modal"
overlayClassName="modal-overlay"
- onRequestClose={this.props.onClose}>
+ onRequestClose={this.props.onClose}
+ shouldCloseOnOverlayClick={!restarting}>
<form id="restart-form" onSubmit={this.handleFormSubmit}>
<div className="modal-head">
<h2>{header}</h2>