diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-10-06 11:06:09 +0200 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-10-06 11:18:46 +0200 |
commit | 52014e69037e0e94b08ab49ed65f8c6a2c1e65d6 (patch) | |
tree | bf8db099dacdeff644cf6c8b9f27b6239fb8e0b6 /server/sonar-web/src/main/js/apps/groups | |
parent | d20713782db677b348fd0a4bf99a939191c6c481 (diff) | |
download | sonarqube-52014e69037e0e94b08ab49ed65f8c6a2c1e65d6.tar.gz sonarqube-52014e69037e0e94b08ab49ed65f8c6a2c1e65d6.zip |
SONAR-6854 use api/user_groups
Diffstat (limited to 'server/sonar-web/src/main/js/apps/groups')
-rw-r--r-- | server/sonar-web/src/main/js/apps/groups/group.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/groups/groups.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/groups/users-view.js | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/groups/group.js b/server/sonar-web/src/main/js/apps/groups/group.js index 89018901895..4fe63565365 100644 --- a/server/sonar-web/src/main/js/apps/groups/group.js +++ b/server/sonar-web/src/main/js/apps/groups/group.js @@ -3,7 +3,7 @@ import Backbone from 'backbone'; export default Backbone.Model.extend({ urlRoot: function () { - return baseUrl + '/api/usergroups'; + return baseUrl + '/api/user_groups'; }, sync: function (method, model, options) { diff --git a/server/sonar-web/src/main/js/apps/groups/groups.js b/server/sonar-web/src/main/js/apps/groups/groups.js index d22d3373d9a..d827872c7e8 100644 --- a/server/sonar-web/src/main/js/apps/groups/groups.js +++ b/server/sonar-web/src/main/js/apps/groups/groups.js @@ -5,7 +5,7 @@ export default Backbone.Collection.extend({ model: Group, url: function () { - return baseUrl + '/api/usergroups/search'; + return baseUrl + '/api/user_groups/search'; }, parse: function (r) { diff --git a/server/sonar-web/src/main/js/apps/groups/users-view.js b/server/sonar-web/src/main/js/apps/groups/users-view.js index 8c815ff2e4d..fa8e632ef07 100644 --- a/server/sonar-web/src/main/js/apps/groups/users-view.js +++ b/server/sonar-web/src/main/js/apps/groups/users-view.js @@ -16,9 +16,9 @@ export default Modal.extend({ return item.name + '<br><span class="note">' + item.login + '</span>'; }, queryParam: 'q', - searchUrl: baseUrl + '/api/usergroups/users?ps=100&id=' + this.model.id, - selectUrl: baseUrl + '/api/usergroups/add_user', - deselectUrl: baseUrl + '/api/usergroups/remove_user', + searchUrl: baseUrl + '/api/user_groups/users?ps=100&id=' + this.model.id, + selectUrl: baseUrl + '/api/user_groups/add_user', + deselectUrl: baseUrl + '/api/user_groups/remove_user', extra: { id: this.model.id }, |