PMCORE-2560:Update the counters in the sideBar
cr
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import axios from "axios";
|
||||
import headerData from "./../mocks/casesHeader.json";
|
||||
import startedCasesFaker from "./../mocks/startedCasesFaker.js";
|
||||
import Api from "./Api.js";
|
||||
|
||||
export let cases = {
|
||||
|
||||
@@ -2,11 +2,26 @@ import axios from 'axios';
|
||||
|
||||
export let menu = {
|
||||
get() {
|
||||
return axios.get(window.config.SYS_SERVER + '/api/1.0/' + window.config.SYS_WORKSPACE + '/home/menu', {
|
||||
return axios.get(
|
||||
window.config.SYS_SERVER +
|
||||
'/api/1.0/' +
|
||||
window.config.SYS_WORKSPACE +
|
||||
'/home/menu', {
|
||||
headers: {
|
||||
'Authorization': 'Bearer ' + window.config.SYS_CREDENTIALS.accessToken
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
getCounters() {
|
||||
return axios.get(
|
||||
window.config.SYS_SERVER +
|
||||
'/api/1.0/' +
|
||||
window.config.SYS_WORKSPACE +
|
||||
'/home/tasks/counter', {
|
||||
headers: {
|
||||
'Authorization': 'Bearer ' + window.config.SYS_CREDENTIALS.accessToken
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user