mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[ADF-1685] tasklist is not loading after logout
This commit is contained in:
parent
9597afb3d5
commit
70182c53aa
@ -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 {
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.adf-error-container {
|
.adf-error-container {
|
||||||
height: 10px;
|
height: 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.adf-error-message {
|
.adf-error-message {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user