[ADF-1711] Task Attachment list - Fix the TaskService dependency (#2752)

* Fix the TaskService dependency

* Improve doc and remove unused dep
This commit is contained in:
Maurizio Vitale
2017-11-29 12:06:52 +00:00
committed by Eugenio Romano
parent 820763ba0e
commit 18dc0711f9
11 changed files with 55 additions and 29 deletions

View File

@@ -37,6 +37,22 @@ If we want user to be able to upload attachments for empty lists, We can wrap ou
</adf-upload-drag-area>
```
import { UploadService } from '@alfresco/adf-core';
import { TaskUploadService } from '@alfresco/adf-process-services';
Make sure to override the UploadService with the TaskUploadService
```ts
@Component({
selector: 'my-custom-task-attachment',
providers: [
{ provide: UploadService, useClass: TaskUploadService }
]
})
export class MyCustomTaskAttachmentComponent {
constructor() {}
}
```
[Upload Drag Area Component](./upload-drag-area.component.md)
If the List is empty, the custom no-content template we passed is displayed.