aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>2017-09-28 15:53:09 +0200
committerDaniel Schwarz <bartfastiel@users.noreply.github.com>2017-09-29 15:32:54 +0200
commit16ca956c05b1fa37e49b8d63f6bdfd6e14ec87b7 (patch)
treef917f8abdf62dd51ca8b0d1d9b79e6faf16071fb /server/sonar-web
parent006ead5557ffd0345eec67134777eee76b0063ec (diff)
downloadsonarqube-16ca956c05b1fa37e49b8d63f6bdfd6e14ec87b7.tar.gz
sonarqube-16ca956c05b1fa37e49b8d63f6bdfd6e14ec87b7.zip
SONAR-9127 make api/qualitygates/get_by_project public, change parameters
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/api/quality-gates.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/api/quality-gates.ts b/server/sonar-web/src/main/js/api/quality-gates.ts
index 2839607c23c..c4142d3958d 100644
--- a/server/sonar-web/src/main/js/api/quality-gates.ts
+++ b/server/sonar-web/src/main/js/api/quality-gates.ts
@@ -84,8 +84,8 @@ export function deleteCondition(id: string): Promise<void> {
return post('/api/qualitygates/delete_condition', { id });
}
-export function getGateForProject(projectKey: string): Promise<QualityGate | undefined> {
- return getJSON('/api/qualitygates/get_by_project', { projectKey }).then(
+export function getGateForProject(project: string): Promise<QualityGate | undefined> {
+ return getJSON('/api/qualitygates/get_by_project', { project }).then(
r =>
r.qualityGate && {
id: r.qualityGate.id,