diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-26 22:43:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-26 22:43:17 +0200 |
commit | 80706fcaec0e458ef2e3d05ee2086582577149ef (patch) | |
tree | 1788b50fd821ff26cdd68abcc1261aface3e72df /server/sonar-web/src/main/js/api/rules.ts | |
parent | 47e73abe2717a0b673f15fefcdfa6e71907e1a09 (diff) | |
download | sonarqube-80706fcaec0e458ef2e3d05ee2086582577149ef.tar.gz sonarqube-80706fcaec0e458ef2e3d05ee2086582577149ef.zip |
fix displaying rule profiles (#2764)
Diffstat (limited to 'server/sonar-web/src/main/js/api/rules.ts')
-rw-r--r-- | server/sonar-web/src/main/js/api/rules.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/api/rules.ts b/server/sonar-web/src/main/js/api/rules.ts index f7b1c0bdab0..82273da860e 100644 --- a/server/sonar-web/src/main/js/api/rules.ts +++ b/server/sonar-web/src/main/js/api/rules.ts @@ -43,14 +43,14 @@ export interface GetRuleDetailsParameters { organization?: string; } -export function getRuleDetails({ key }: GetRuleDetailsParameters): Promise<any> { - return getJSON('/api/rules/show', { key }).catch(throwGlobalError); +export function getRuleDetails(parameters: GetRuleDetailsParameters): Promise<any> { + return getJSON('/api/rules/show', parameters).catch(throwGlobalError); } export function getRuleTags(parameters: { organization?: string }): Promise<string[]> { return getJSON('/api/rules/tags', parameters).then(r => r.tags, throwGlobalError); } -export function deleteRule({ key }: { key: string }) { - return post('/api/rules/delete', { key }).catch(throwGlobalError); +export function deleteRule(parameters: { key: string }) { + return post('/api/rules/delete', parameters).catch(throwGlobalError); } |