diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2020-12-10 17:55:59 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-12-22 20:09:36 +0000 |
commit | a8c060c66b6ed656cdfeb33593492fd09209847a (patch) | |
tree | 0227b434ed03dbfed4c782f2d7a454a55e6430db /server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx | |
parent | 2c9a70a4bac47b14dec82cd9d4b7fce1e4905f8e (diff) | |
download | sonarqube-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/Condition.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx index c8f16386178..89f1685552d 100644 --- a/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx +++ b/server/sonar-web/src/main/js/apps/quality-gates/components/Condition.tsx @@ -35,7 +35,6 @@ interface Props { condition: T.Condition; canEdit: boolean; metric: T.Metric; - organization?: string; onRemoveCondition: (Condition: T.Condition) => void; onSaveCondition: (newCondition: T.Condition, oldCondition: T.Condition) => void; qualityGate: T.QualityGate; @@ -77,7 +76,7 @@ export default class Condition extends React.PureComponent<Props, State> { }; removeCondition = (condition: T.Condition) => { - deleteCondition({ id: condition.id, organization: this.props.organization }).then( + deleteCondition({ id: condition.id }).then( () => this.props.onRemoveCondition(condition), () => {} ); @@ -92,7 +91,7 @@ export default class Condition extends React.PureComponent<Props, State> { } render() { - const { condition, canEdit, metric, organization, qualityGate, updated } = this.props; + const { condition, canEdit, metric, qualityGate, updated } = this.props; return ( <tr className={classNames({ highlighted: updated })}> <td className="text-middle"> @@ -127,7 +126,6 @@ export default class Condition extends React.PureComponent<Props, State> { metric={metric} onAddCondition={this.handleUpdateCondition} onClose={this.handleUpdateClose} - organization={organization} qualityGate={qualityGate} /> )} |