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 {
|
onTabChange(event: any): void {
|
||||||
this.showProcessPagination = event.index === 1;
|
this.showProcessPagination = event.index === 1;
|
||||||
this.paginationPageSize = this.preferenceService.paginationSize;
|
this.paginationPageSize = this.preferenceService.paginationSize;
|
||||||
|
if (this.processList) {
|
||||||
|
this.processList.reload();
|
||||||
|
}
|
||||||
|
if (this.taskList) {
|
||||||
|
this.taskList.reload();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onChangePageSize(event: Pagination): void {
|
onChangePageSize(event: Pagination): void {
|
||||||
@@ -367,14 +373,11 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
|||||||
|
|
||||||
onFormCompleted(form): void {
|
onFormCompleted(form): void {
|
||||||
this.currentTaskId = null;
|
this.currentTaskId = null;
|
||||||
this.taskPage = this.taskListPagination.current - 1;
|
if (this.taskListPagination) {
|
||||||
if (this.taskList) {
|
this.taskPage = this.taskListPagination.current - 1;
|
||||||
this.taskList.reload();
|
|
||||||
} else {
|
|
||||||
this.navigateToProcess();
|
|
||||||
}
|
}
|
||||||
if (this.processList) {
|
if (!this.taskList) {
|
||||||
this.processList.reload();
|
this.navigateToProcess();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user