mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Eugenio Romano
parent
820763ba0e
commit
18dc0711f9
@@ -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.
|
||||
|
Reference in New Issue
Block a user