From 18dc0711f93ebad7fbcadc50cd5a6e50c7667be9 Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Wed, 29 Nov 2017 12:06:52 +0000 Subject: [PATCH] [ADF-1711] Task Attachment list - Fix the TaskService dependency (#2752) * Fix the TaskService dependency * Improve doc and remove unused dep --- demo-shell/resources/i18n/en.json | 3 ++- .../process-attachments.component.ts | 7 +++++-- .../process-service.component.html | 4 ++-- .../process-service.component.ts | 8 ++------ .../task-attachments.component.ts | 7 +++++-- docs/process-attachment-list.component.md | 17 +++++++++++++++++ docs/task-attachment-list.component.md | 16 ++++++++++++++++ .../attachment/attachment.module.ts | 4 ---- .../process-attachment-list.component.ts | 8 ++------ .../task-attachment-list.component.ts | 8 ++------ .../task-list/task-list.module.ts | 2 ++ 11 files changed, 55 insertions(+), 29 deletions(-) diff --git a/demo-shell/resources/i18n/en.json b/demo-shell/resources/i18n/en.json index e4effabf11..51c4e15f77 100644 --- a/demo-shell/resources/i18n/en.json +++ b/demo-shell/resources/i18n/en.json @@ -72,7 +72,8 @@ "REPORTS-TAB": "Reports", "START-TASK": "Start task", "START-PROCESS": "Start process", - "AUDIT-LOG": "Process Audit log" + "PROCESS-AUDIT-LOG": "Process Audit log", + "TASK-AUDIT-LOG": "Task Audit log" }, "FORM-LIST": { "STORE": "Store", diff --git a/demo-shell/src/app/components/process-service/process-attachments.component.ts b/demo-shell/src/app/components/process-service/process-attachments.component.ts index 5ce635926e..13fbb9817c 100644 --- a/demo-shell/src/app/components/process-service/process-attachments.component.ts +++ b/demo-shell/src/app/components/process-service/process-attachments.component.ts @@ -17,13 +17,16 @@ import { Component, Input, OnChanges, OnInit, ViewChild } from '@angular/core'; import { ProcessInstance, ProcessService , - ProcessAttachmentListComponent } from '@alfresco/adf-process-services'; + ProcessAttachmentListComponent, ProcessUploadService } from '@alfresco/adf-process-services'; import { UploadService } from '@alfresco/adf-core'; @Component({ selector: 'app-process-attachments', templateUrl: './process-attachments.component.html', - styleUrls: ['./process-attachments.component.css'] + styleUrls: ['./process-attachments.component.css'], + providers: [ + { provide: UploadService, useClass: ProcessUploadService } + ] }) export class ProcessAttachmentsComponent implements OnInit, OnChanges { diff --git a/demo-shell/src/app/components/process-service/process-service.component.html b/demo-shell/src/app/components/process-service/process-service.component.html index 81130280f0..74d2e07e01 100644 --- a/demo-shell/src/app/components/process-service/process-service.component.html +++ b/demo-shell/src/app/components/process-service/process-service.component.html @@ -73,7 +73,7 @@
- {{'PS-TAB.AUDIT-LOG' | translate}} + {{'PS-TAB.TASK-AUDIT-LOG' | translate}}