aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-04-04 12:18:22 +0200
committerSonarTech <sonartech@sonarsource.com>2018-04-04 20:28:01 +0200
commit0602abbaae52104ab39087ae29efd6ea2ab45cb7 (patch)
tree7c9cf36fee28b52b9431341b46afeddac37ffda7 /server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx
parent6ab3e013a2cc0f3c90c6cff8f89ab015977a561f (diff)
downloadsonarqube-0602abbaae52104ab39087ae29efd6ea2ab45cb7.tar.gz
sonarqube-0602abbaae52104ab39087ae29efd6ea2ab45cb7.zip
Fix Quality Gate create form
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx
index f34aad8bfb9..6a0ca705301 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/CreateQualityGateForm.tsx
@@ -21,7 +21,7 @@ import * as React from 'react';
import * as PropTypes from 'prop-types';
import { createQualityGate, QualityGate } from '../../../api/quality-gates';
import Modal from '../../../components/controls/Modal';
-import { Button, ResetButtonLink } from '../../../components/ui/buttons';
+import { SubmitButton, ResetButtonLink } from '../../../components/ui/buttons';
import { translate } from '../../../helpers/l10n';
import { getQualityGateUrl } from '../../../helpers/urls';
@@ -80,7 +80,7 @@ export default class CreateQualityGateForm extends React.PureComponent<Props, St
render() {
const { loading, name } = this.state;
- const header = translate('quality_gates.rename');
+ const header = translate('quality_gates.create');
const submitDisabled = loading || !name;
return (
@@ -109,9 +109,9 @@ export default class CreateQualityGateForm extends React.PureComponent<Props, St
</div>
<div className="modal-foot">
{loading && <i className="spinner spacer-right" />}
- <Button className="js-confirm" disabled={submitDisabled}>
+ <SubmitButton className="js-confirm" disabled={submitDisabled}>
{translate('save')}
- </Button>
+ </SubmitButton>
<ResetButtonLink className="js-modal-close" onClick={this.props.onClose}>
{translate('cancel')}
</ResetButtonLink>