mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
After cancelling a process list is not refreshed #1050 bubbling events and implements reload
This commit is contained in:
@@ -70,10 +70,7 @@ export class ActivitiProcessInstanceListComponent implements OnInit, OnChanges {
|
||||
if (!this.data) {
|
||||
this.data = this.initDefaultSchemaColumns();
|
||||
}
|
||||
if (this.filter) {
|
||||
let requestNode = this.convertProcessInstanceToTaskQuery(this.filter);
|
||||
this.load(requestNode);
|
||||
}
|
||||
this.reload();
|
||||
}
|
||||
|
||||
ngOnChanges(changes: SimpleChanges) {
|
||||
@@ -192,6 +189,13 @@ export class ActivitiProcessInstanceListComponent implements OnInit, OnChanges {
|
||||
return tasks;
|
||||
}
|
||||
|
||||
public reload() {
|
||||
if (this.filter) {
|
||||
let requestNode = this.convertProcessInstanceToTaskQuery(this.filter);
|
||||
this.load(requestNode);
|
||||
}
|
||||
}
|
||||
|
||||
private convertProcessInstanceToTaskQuery(processFilter: FilterRepresentationModel) {
|
||||
let requestNode = {
|
||||
appDefinitionId: processFilter.appId,
|
||||
|
Reference in New Issue
Block a user