From 47f5a5ddfb4f64ea8acb7f9324488aa3ebc81078 Mon Sep 17 00:00:00 2001 From: siva kumar Date: Mon, 20 Nov 2017 17:42:21 +0530 Subject: [PATCH] [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). --- .../src/app/components/activiti/activiti.component.html | 9 +++++---- .../src/app/components/activiti/activiti.component.ts | 2 +- .../attachment/process-attachment-list.component.html | 2 +- .../attachment/task-attachment-list.component.html | 2 +- lib/process-services/i18n/en.json | 1 + 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/demo-shell/src/app/components/activiti/activiti.component.html b/demo-shell/src/app/components/activiti/activiti.component.html index b323fc645a..d623ab6ba9 100644 --- a/demo-shell/src/app/components/activiti/activiti.component.html +++ b/demo-shell/src/app/components/activiti/activiti.component.html @@ -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 @@ + [taskId]="currentTaskId" + (attachmentClick)="onContentClick($event)"> @@ -172,10 +173,10 @@
- + [processInstanceId]="currentProcessInstanceId" + (attachmentClick)="onContentClick($event)"> diff --git a/demo-shell/src/app/components/activiti/activiti.component.ts b/demo-shell/src/app/components/activiti/activiti.component.ts index 64b1bf8287..ace8ce4e13 100644 --- a/demo-shell/src/app/components/activiti/activiti.component.ts +++ b/demo-shell/src/app/components/activiti/activiti.component.ts @@ -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; diff --git a/lib/process-services/attachment/process-attachment-list.component.html b/lib/process-services/attachment/process-attachment-list.component.html index ed072cf7ca..456d650759 100644 --- a/lib/process-services/attachment/process-attachment-list.component.html +++ b/lib/process-services/attachment/process-attachment-list.component.html @@ -13,7 +13,7 @@ - + diff --git a/lib/process-services/attachment/task-attachment-list.component.html b/lib/process-services/attachment/task-attachment-list.component.html index 2188fbbc14..fc3ab365b7 100644 --- a/lib/process-services/attachment/task-attachment-list.component.html +++ b/lib/process-services/attachment/task-attachment-list.component.html @@ -11,7 +11,7 @@ - + diff --git a/lib/process-services/i18n/en.json b/lib/process-services/i18n/en.json index db54c53469..31950e7ad7 100644 --- a/lib/process-services/i18n/en.json +++ b/lib/process-services/i18n/en.json @@ -176,6 +176,7 @@ "PROPERTIES": { "PROCESS_NAME": "Process", "NAME": "Name", + "THUMBNAIL": "Thumbnail", "STATUS": "Status", "DUE_DATE": "Due Date", "DUE_DATE_DEFAULT": "No date",