aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2020-12-10 17:55:59 +0100
committersonartech <sonartech@sonarsource.com>2020-12-22 20:09:36 +0000
commita8c060c66b6ed656cdfeb33593492fd09209847a (patch)
tree0227b434ed03dbfed4c782f2d7a454a55e6430db /server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx
parent2c9a70a4bac47b14dec82cd9d4b7fce1e4905f8e (diff)
downloadsonarqube-a8c060c66b6ed656cdfeb33593492fd09209847a.tar.gz
sonarqube-a8c060c66b6ed656cdfeb33593492fd09209847a.zip
SONAR-13999 Drop orgs from QualityGates
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx
index 2a9fb8a5184..bb7b800e444 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/ConditionModal.tsx
@@ -36,7 +36,6 @@ interface Props {
header: string;
onAddCondition: (condition: T.Condition) => void;
onClose: () => void;
- organization?: string;
qualityGate: T.QualityGate;
}
@@ -66,15 +65,15 @@ export default class ConditionModal extends React.PureComponent<Props, State> {
handleFormSubmit = () => {
if (this.state.metric) {
- const { condition, qualityGate, organization } = this.props;
+ const { condition, qualityGate } = this.props;
const newCondition: T.Omit<T.Condition, 'id'> = {
metric: this.state.metric.key,
op: this.getSinglePossibleOperator(this.state.metric) || this.state.op,
error: this.state.error
};
const submitPromise = condition
- ? updateCondition({ organization, id: condition.id, ...newCondition })
- : createCondition({ gateId: qualityGate.id, organization, ...newCondition });
+ ? updateCondition({ id: condition.id, ...newCondition })
+ : createCondition({ gateId: qualityGate.id, ...newCondition });
return submitPromise.then(this.props.onAddCondition);
}
return Promise.reject();