mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-1950] Not able to open an attached file within a Task. (#2654)
* [ADF-1950] Not able to open an attached file within a Task. * Changed data-column key 'icon' to 'image' in task/process attachment file component. * Refactored activiti-component. * Used Adf-viewer to view the attached documents. * [ADF-1950] Not able to open an attached file within a Task. * Centralized the use of the adf-viewer component in the activiti component (demo shell folder).
This commit is contained in:
committed by
Eugenio Romano
parent
edaa442e18
commit
47f5a5ddfb
@@ -66,7 +66,7 @@
|
||||
[taskId]="currentTaskId"
|
||||
[fieldValidators]="fieldValidators"
|
||||
(formCompleted)="onFormCompleted($event)"
|
||||
(formContentClicked)="onFormContentClick($event)"
|
||||
(formContentClicked)="onContentClick($event)"
|
||||
(taskCreated)="onTaskCreated($event)"
|
||||
(assignTask)="onAssignTask()"
|
||||
(taskDeleted)="onTaskDeleted($event)">
|
||||
@@ -86,7 +86,8 @@
|
||||
<mat-card>
|
||||
<mat-card-content>
|
||||
<adf-task-attachment-list
|
||||
[taskId]="currentTaskId">
|
||||
[taskId]="currentTaskId"
|
||||
(attachmentClick)="onContentClick($event)">
|
||||
</adf-task-attachment-list>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
@@ -172,10 +173,10 @@
|
||||
<hr>
|
||||
</div>
|
||||
<mat-card>
|
||||
|
||||
<mat-card-content>
|
||||
<adf-process-attachment-list
|
||||
[processInstanceId]="currentProcessInstanceId">
|
||||
[processInstanceId]="currentProcessInstanceId"
|
||||
(attachmentClick)="onContentClick($event)">
|
||||
</adf-process-attachment-list>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
@@ -388,7 +388,7 @@ export class ActivitiComponent implements AfterViewInit, OnDestroy, OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
onFormContentClick(content: any): void {
|
||||
onContentClick(content: any): void {
|
||||
this.fileShowed = true;
|
||||
this.content = content.contentBlob;
|
||||
this.contentName = content.name;
|
||||
|
Reference in New Issue
Block a user