[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:
siva kumar
2017-11-20 17:42:21 +05:30
committed by Eugenio Romano
parent edaa442e18
commit 47f5a5ddfb
5 changed files with 9 additions and 7 deletions

View File

@@ -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>

View File

@@ -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;