mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2692] - refresh must be done on tab changes otherwise ViewChild obj refrence are null (#3190)
* [ADF-2692] - refresh must be done on tab changes otherwise ViewChild obj refrence are null * [ADF-2692] removed extra reloading calls * [ADF-2692] rebased and fixed name
This commit is contained in:
@@ -243,6 +243,12 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
onTabChange(event: any): void {
|
||||
this.showProcessPagination = event.index === 1;
|
||||
this.paginationPageSize = this.preferenceService.paginationSize;
|
||||
if (this.processList) {
|
||||
this.processList.reload();
|
||||
}
|
||||
if (this.taskList) {
|
||||
this.taskList.reload();
|
||||
}
|
||||
}
|
||||
|
||||
onChangePageSize(event: Pagination): void {
|
||||
@@ -367,14 +373,11 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
|
||||
onFormCompleted(form): void {
|
||||
this.currentTaskId = null;
|
||||
this.taskPage = this.taskListPagination.current - 1;
|
||||
if (this.taskList) {
|
||||
this.taskList.reload();
|
||||
} else {
|
||||
this.navigateToProcess();
|
||||
if (this.taskListPagination) {
|
||||
this.taskPage = this.taskListPagination.current - 1;
|
||||
}
|
||||
if (this.processList) {
|
||||
this.processList.reload();
|
||||
if (!this.taskList) {
|
||||
this.navigateToProcess();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user