From 2d568ff3830cef88392656119bd2485a9ae9c8e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Thu, 19 Oct 2017 16:32:38 +0200 Subject: [PATCH] Prevent from leaving the restart server form when restarting --- server/sonar-web/src/main/js/components/common/RestartForm.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { contentLabel={header} className="modal" overlayClassName="modal-overlay" - onRequestClose={this.props.onClose}> + onRequestClose={this.props.onClose} + shouldCloseOnOverlayClick={!restarting}>

{header}

-- 2.39.5