diff --git a/demo-shell-ng2/app/components/activiti/activiti-demo.component.html b/demo-shell-ng2/app/components/activiti/activiti-demo.component.html
index 11f6544900..ff8e279604 100644
--- a/demo-shell-ng2/app/components/activiti/activiti-demo.component.html
+++ b/demo-shell-ng2/app/components/activiti/activiti-demo.component.html
@@ -36,7 +36,13 @@
diff --git a/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.html b/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.html
index 9dbfa195b6..a92efe7e67 100644
--- a/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.html
+++ b/ng2-components/ng2-activiti-tasklist/src/components/activiti-tasklist.component.html
@@ -1,5 +1,5 @@
-{{ 'TASK_FILTERS.MESSAGES.NONE' | translate }}
-
+
{{ 'TASK_FILTERS.MESSAGES.NONE' | translate }}
+
{
requestNode.size = res.total;
@@ -191,14 +199,14 @@ export class ActivitiTaskList implements OnInit, OnChanges {
return tasks;
}
- private convertTaskUserToTaskQuery(userTask: FilterRepresentationModel) {
+ private createRequestNode() {
let requestNode = {
- appDefinitionId: userTask.appId,
- processDefinitionId: userTask.filter.processDefinitionId,
- text: userTask.filter.name,
- assignment: userTask.filter.assignment,
- state: userTask.filter.state,
- sort: userTask.filter.sort
+ appDefinitionId: this.appId,
+ processDefinitionId: this.processDefinitionId,
+ text: this.name,
+ assignment: this.assignment,
+ state: this.state,
+ sort: this.sort
};
return new TaskQueryRequestRepresentationModel(requestNode);
}
diff --git a/ng2-components/ng2-activiti-tasklist/src/models/filter.model.ts b/ng2-components/ng2-activiti-tasklist/src/models/filter.model.ts
index 72fd681bcd..09a8c88256 100644
--- a/ng2-components/ng2-activiti-tasklist/src/models/filter.model.ts
+++ b/ng2-components/ng2-activiti-tasklist/src/models/filter.model.ts
@@ -70,6 +70,10 @@ export class FilterRepresentationModel {
this.filter = new FilterParamRepresentationModel(obj.filter);
this.index = obj && obj.index;
}
+
+ hasFilter() {
+ return this.filter ? true : false;
+ }
}
/**