aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-07-12 15:04:47 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-07-13 18:12:50 +0200
commit71624bb5617ab6ffb67de3f07757b33cc8ebb83d (patch)
tree5ee2847ec1c4d9ad54481187aac1ad521d89a28b /server/sonar-web/src/main/js
parentf6b2f834b2ea0380e92c78cfd3ce0d1f67a5b9af (diff)
downloadsonarqube-71624bb5617ab6ffb67de3f07757b33cc8ebb83d.tar.gz
sonarqube-71624bb5617ab6ffb67de3f07757b33cc8ebb83d.zip
SONAR-7753 allow system admins to access project permissions page
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r--server/sonar-web/src/main/js/api/ce.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/api/ce.js b/server/sonar-web/src/main/js/api/ce.js
index f7ec5e042ba..9eb33301774 100644
--- a/server/sonar-web/src/main/js/api/ce.js
+++ b/server/sonar-web/src/main/js/api/ce.js
@@ -18,7 +18,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import $ from 'jquery';
-import { getJSON, post } from '../helpers/request.js';
+import { getJSON, post } from '../helpers/request';
export function getQueue (data) {
const url = window.baseUrl + '/api/ce/queue';
@@ -58,9 +58,9 @@ export function cancelAllTasks () {
}
export function getTasksForComponent (componentId) {
- const url = window.baseUrl + '/api/ce/component';
+ const url = '/api/ce/component';
const data = { componentId };
- return new Promise(resolve => $.get(url, data).done(resolve));
+ return getJSON(url, data);
}
export function getTypes () {