[ADF-491] Task Attachment List Component (#1877)

* Create a new component Task Attachment List
Improve the datatable to get the rows to show

* The component name should follow the guide style
Move the Content calls in a different service file
Show the attach file inside the viewer

* Change method name

* Datatable should get the path and show the icon

* Improve attachment component

* Improve datatable documentation

* Remove console.log
This commit is contained in:
Maurizio Vitale
2017-05-18 16:52:39 +02:00
committed by Eugenio Romano
parent 608b3639ea
commit a90423aa21
39 changed files with 4252 additions and 5 deletions

View File

@@ -70,6 +70,12 @@
(taskCreated)="onTaskCreated($event)"
(taskDeleted)="onTaskDeleted($event)">
</activiti-task-details>
<hr>
<h5>Attachments</h5>
<adf-task-attachment-list *ngIf="currentTaskId"
[taskId]="currentTaskId"
(attachmentClick)="onAttachmentClick($event)">
</adf-task-attachment-list>
</div>
</div>
</div>

View File

@@ -254,6 +254,12 @@ export class ActivitiDemoComponent implements AfterViewInit {
this.contentName = content.name;
}
onAttachmentClick(content: any) {
this.fileShowed = true;
this.content = content.contentBlob;
this.contentName = content.name;
}
onTaskCreated(data: any) {
this.currentTaskId = data.parentTaskId;
this.taskList.reload();