diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/common/RestartButton.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/components/common/RestartButton.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/common/RestartButton.tsx b/server/sonar-web/src/main/js/components/common/RestartButton.tsx index 1abbc137843..c6eb8bd0f24 100644 --- a/server/sonar-web/src/main/js/components/common/RestartButton.tsx +++ b/server/sonar-web/src/main/js/components/common/RestartButton.tsx @@ -50,12 +50,14 @@ export default class RestartButton extends React.PureComponent<Props> { </> } modalHeader={translate('system.restart_server')} - onConfirm={this.handleConfirm}> + onConfirm={this.handleConfirm} + > {({ onClick }) => ( <Button className={classNames('button-red', className)} disabled={systemStatus !== 'UP'} - onClick={onClick}> + onClick={onClick} + > {systemStatus === 'RESTARTING' ? translate('system.restart_in_progress') : translate('system.restart_server')} |