mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
* #1259 - fix assignee for checklist task * #1259 - added checklist to tasklist readme
This commit is contained in:
@@ -38,6 +38,9 @@ export class ActivitiChecklist implements OnInit, OnChanges {
|
||||
@Input()
|
||||
readOnly: boolean = false;
|
||||
|
||||
@Input()
|
||||
assignee: string;
|
||||
|
||||
@ViewChild('dialog')
|
||||
dialog: any;
|
||||
|
||||
@@ -104,7 +107,11 @@ export class ActivitiChecklist implements OnInit, OnChanges {
|
||||
}
|
||||
|
||||
public add() {
|
||||
let newTask = new TaskDetailsModel({name: this.taskName, parentTaskId: this.taskId, assignee: {id: '1'}});
|
||||
let newTask = new TaskDetailsModel({
|
||||
name: this.taskName,
|
||||
parentTaskId: this.taskId,
|
||||
assignee: { id: this.assignee }
|
||||
});
|
||||
this.activitiTaskList.addTask(newTask).subscribe(
|
||||
(res: TaskDetailsModel) => {
|
||||
this.checklist.push(res);
|
||||
@@ -113,7 +120,6 @@ export class ActivitiChecklist implements OnInit, OnChanges {
|
||||
console.log(err);
|
||||
}
|
||||
);
|
||||
|
||||
this.cancel();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user