[ADF-1685] tasklist is not loading after logout

This commit is contained in:
Eugenio Romano 2017-10-06 20:28:17 +01:00
parent 9597afb3d5
commit 70182c53aa
3 changed files with 5 additions and 3 deletions

View File

@ -215,7 +215,7 @@ export class ActivitiDemoComponent implements AfterViewInit, OnDestroy, OnInit {
this.taskPagination = { count: tasks.data.length, maxItems: this.taskPagination.maxItems, skipCount: this.taskPagination.skipCount, totalItems: tasks.total }; this.taskPagination = { count: tasks.data.length, maxItems: this.taskPagination.maxItems, skipCount: this.taskPagination.skipCount, totalItems: tasks.total };
console.log({ count: tasks.data.length, maxItems: this.taskPagination.maxItems, skipCount: this.taskPagination.skipCount, totalItems: tasks.total }); console.log({ count: tasks.data.length, maxItems: this.taskPagination.maxItems, skipCount: this.taskPagination.skipCount, totalItems: tasks.total });
}, (err) => { }, (err) => {
console.log('err'); console.log('err' + err);
}); });
if (this.router.url.includes('processes')) { if (this.router.url.includes('processes')) {
@ -238,6 +238,7 @@ export class ActivitiDemoComponent implements AfterViewInit, OnDestroy, OnInit {
ngOnDestroy() { ngOnDestroy() {
this.sub.unsubscribe(); this.sub.unsubscribe();
this.taskListService.tasksList$.subscribe();
} }
onTaskFilterClick(filter: FilterRepresentationModel): void { onTaskFilterClick(filter: FilterRepresentationModel): void {

View File

@ -32,10 +32,11 @@ import { TaskListModel } from '../models/task-list.model';
export class TaskListService { export class TaskListService {
private tasksListSubject = new Subject<TaskListModel>(); private tasksListSubject = new Subject<TaskListModel>();
public tasksList$: Observable<TaskListModel> = this.tasksListSubject.asObservable(); public tasksList$: Observable<TaskListModel>;
constructor(private apiService: AlfrescoApiService, constructor(private apiService: AlfrescoApiService,
private logService: LogService) { private logService: LogService) {
this.tasksList$ = this.tasksListSubject.asObservable();
} }
/** /**

View File

@ -66,7 +66,7 @@
} }
.adf-error-container { .adf-error-container {
height: 10px; height: 45px;
} }
.adf-error-message { .adf-error-message {