mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [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).
30 lines
1.8 KiB
HTML
30 lines
1.8 KiB
HTML
<adf-datatable [rows]="attachments" [actions]="true" [loading]="isLoading" (rowDblClick)="openContent($event)" (showRowActionsMenu)="onShowRowActionsMenu($event)"
|
|
(executeRowAction)="onExecuteRowAction($event)">
|
|
|
|
<adf-empty-list *ngIf="isEmpty()">
|
|
<div adf-empty-list-header class="adf-empty-list-header"> {{'ADF_PROCESS_LIST.PROCESS-ATTACHMENT.EMPTY.HEADER' | translate}} </div>
|
|
<div adf-empty-list-body *ngIf="!isDisabled()">
|
|
<div fxHide.lt-md="true" class="adf-empty-list-drag_drop">{{'ADF_PROCESS_LIST.PROCESS-ATTACHMENT.EMPTY.DRAG-AND-DROP.TITLE' | translate}}</div>
|
|
<div fxHide.lt-md="true" class="adf-empty-list__any-files-here-to-add"> {{'ADF_PROCESS_LIST.PROCESS-ATTACHMENT.EMPTY.DRAG-AND-DROP.SUBTITLE' | translate}} </div>
|
|
</div>
|
|
<div adf-empty-list-footer *ngIf="!isDisabled()">
|
|
<img class="adf-empty-list__empty_doc_lib" [src]="emptyListImageUrl">
|
|
</div>
|
|
</adf-empty-list>
|
|
|
|
<data-columns>
|
|
<data-column key="icon" type="image" srTitle="ADF_PROCESS_LIST.PROPERTIES.THUMBNAIL" [sortable]="false"></data-column>
|
|
<data-column key="name" type="text" title="{{'ADF_PROCESS_LIST.PROPERTIES.NAME' | translate}}" class="full-width ellipsis-cell" [sortable]="true"></data-column>
|
|
<data-column key="created" type="date" format="shortDate" title="{{'ADF_PROCESS_LIST.PROPERTIES.CREATED' | translate}}"></data-column>
|
|
</data-columns>
|
|
|
|
<loading-content-template>
|
|
<ng-template>
|
|
<!--Add your custom loading template here-->
|
|
<mat-progress-spinner class="adf-attachment-list-loading-margin" [color]="'primary'" [mode]="'indeterminate'">
|
|
</mat-progress-spinner>
|
|
</ng-template>
|
|
</loading-content-template>
|
|
|
|
</adf-datatable>
|