mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Eugenio Romano
parent
608b3639ea
commit
a90423aa21
@@ -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>
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user