aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectQualityGate
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-05-08 08:43:32 +0200
committerSonarTech <sonartech@sonarsource.com>2018-05-08 20:20:45 +0200
commitc9b7be242b0cc8513923d6a38c4c957aa25dd170 (patch)
tree99f34eb87764f28cc60a31d6b760905d01a258cc /server/sonar-web/src/main/js/apps/projectQualityGate
parent512335aa981a816bc9ee0725c7ee0344f525f390 (diff)
downloadsonarqube-c9b7be242b0cc8513923d6a38c4c957aa25dd170.tar.gz
sonarqube-c9b7be242b0cc8513923d6a38c4c957aa25dd170.zip
SONAR-10513 Remove redux store form quality gates app
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectQualityGate')
-rw-r--r--server/sonar-web/src/main/js/apps/projectQualityGate/App.tsx7
-rw-r--r--server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx2
2 files changed, 4 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectQualityGate/App.tsx b/server/sonar-web/src/main/js/apps/projectQualityGate/App.tsx
index 9d1d86e32dc..2ecc5f07a4f 100644
--- a/server/sonar-web/src/main/js/apps/projectQualityGate/App.tsx
+++ b/server/sonar-web/src/main/js/apps/projectQualityGate/App.tsx
@@ -25,13 +25,12 @@ import {
fetchQualityGates,
getGateForProject,
associateGateWithProject,
- dissociateGateWithProject,
- QualityGate
+ dissociateGateWithProject
} from '../../api/quality-gates';
import Suggestions from '../../app/components/embed-docs-modal/Suggestions';
import addGlobalSuccessMessage from '../../app/utils/addGlobalSuccessMessage';
import handleRequiredAuthorization from '../../app/utils/handleRequiredAuthorization';
-import { Component } from '../../app/types';
+import { Component, QualityGate } from '../../app/types';
import { translate } from '../../helpers/l10n';
interface Props {
@@ -128,7 +127,7 @@ export default class App extends React.PureComponent<Props> {
const { allGates, gate, loading } = this.state;
return (
- <div id="project-quality-gate" className="page page-limited">
+ <div className="page page-limited" id="project-quality-gate">
<Suggestions suggestions="project_quality_gate" />
<Helmet title={translate('project_quality_gate.page')} />
<Header />
diff --git a/server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx b/server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx
index 3a826687096..1ac3be588b2 100644
--- a/server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx
+++ b/server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx
@@ -18,9 +18,9 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import * as React from 'react';
-import { QualityGate } from '../../api/quality-gates';
import Select from '../../components/controls/Select';
import { translate } from '../../helpers/l10n';
+import { QualityGate } from '../../app/types';
interface Props {
allGates: QualityGate[];