summaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/system.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-10-16 18:41:43 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-10-19 10:50:17 +0200
commitf8ae4195cb259f285ce2546fe4921a470f61b276 (patch)
treed481e77e9e4b487a3b3c0843324aa920c5e939a9 /server/sonar-web/src/main/js/api/system.js
parentf0f585d25d40d6117e586167f5f42c93978060f8 (diff)
downloadsonarqube-f8ae4195cb259f285ce2546fe4921a470f61b276.tar.gz
sonarqube-f8ae4195cb259f285ce2546fe4921a470f61b276.zip
SONAR-6928 Rewrite the System Info page
Diffstat (limited to 'server/sonar-web/src/main/js/api/system.js')
-rw-r--r--server/sonar-web/src/main/js/api/system.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/api/system.js b/server/sonar-web/src/main/js/api/system.js
index 226f8724ef8..fab447ccdbd 100644
--- a/server/sonar-web/src/main/js/api/system.js
+++ b/server/sonar-web/src/main/js/api/system.js
@@ -1,13 +1,12 @@
-import { getJSON } from '../helpers/request.js';
-import $ from 'jquery';
+import { getJSON, postJSON } from '../helpers/request';
-// TODO migrate to fetch()
export function setLogLevel (level) {
- let url = baseUrl + '/api/system/change_log_level';
- return $.post(url, { level });
+ let url = window.baseUrl + '/api/system/change_log_level';
+ let data = { level };
+ return postJSON(url, data);
}
export function getSystemInfo () {
- let url = baseUrl + '/api/system/info';
+ let url = window.baseUrl + '/api/system/info';
return getJSON(url);
}