Fixed problem after rebase

This commit is contained in:
mauriziovitale84 2016-07-29 12:03:37 +01:00
parent 15e1a33be1
commit 74c205ec11
2 changed files with 5 additions and 5 deletions

View File

@ -48,7 +48,7 @@ describe('ActivitiFilters', () => {
}); });
beforeEach(() => { beforeEach(() => {
let activitiService = new ActivitiTaskListService(null); let activitiService = new ActivitiTaskListService(null, null);
filterList = new ActivitiFilters(null, null, activitiService); filterList = new ActivitiFilters(null, null, activitiService);
}); });

View File

@ -195,7 +195,7 @@ export class ActivitiTaskListService {
} }
private callApiTaskComments(id: string) { private callApiTaskComments(id: string) {
let url = `${this.basePath}/api/enterprise/tasks/${id}/comments`; let url = this.alfrescoSettingsService.getBPMApiBaseUrl() + `/api/enterprise/tasks/${id}/comments`;
let headers = new Headers({ let headers = new Headers({
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Cache-Control': 'no-cache' 'Cache-Control': 'no-cache'
@ -207,7 +207,7 @@ export class ActivitiTaskListService {
} }
private callApiAddTaskComment(id: string, message: string) { private callApiAddTaskComment(id: string, message: string) {
let url = `${this.basePath}/api/enterprise/tasks/${id}/comments`; let url = this.alfrescoSettingsService.getBPMApiBaseUrl() + `/api/enterprise/tasks/${id}/comments`;
let headers = new Headers({ let headers = new Headers({
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Cache-Control': 'no-cache' 'Cache-Control': 'no-cache'
@ -220,7 +220,7 @@ export class ActivitiTaskListService {
} }
private callApiAddTask(task: TaskDetailsModel) { private callApiAddTask(task: TaskDetailsModel) {
let url = `${this.basePath}/api/enterprise/tasks/${task.parentTaskId}/checklist`; let url = this.alfrescoSettingsService.getBPMApiBaseUrl() + `/api/enterprise/tasks/${task.parentTaskId}/checklist`;
let headers = new Headers({ let headers = new Headers({
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Cache-Control': 'no-cache' 'Cache-Control': 'no-cache'
@ -233,7 +233,7 @@ export class ActivitiTaskListService {
} }
private callApiTaskChecklist(id: string) { private callApiTaskChecklist(id: string) {
let url = `${this.basePath}/api/enterprise/tasks/${id}/checklist`; let url = this.alfrescoSettingsService.getBPMApiBaseUrl() + `/api/enterprise/tasks/${id}/checklist`;
let headers = new Headers({ let headers = new Headers({
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Cache-Control': 'no-cache' 'Cache-Control': 'no-cache'