[ADF-1758] Remove the hardcoded work and add keys (#2499)

This commit is contained in:
Maurizio Vitale
2017-10-18 19:15:21 +01:00
committed by Denys Vuika
parent 0c717fe9cc
commit 0bdd66e158
4 changed files with 14 additions and 8 deletions

View File

@@ -11,9 +11,9 @@
</div>
</adf-empty-list>
<data-columns>
<data-column key="icon" type="icon" srTitle="Thumbnail" [sortable]="false"></data-column>
<data-column key="name" type="text" title="Name" class="full-width ellipsis-cell" [sortable]="true"></data-column>
<data-column key="created" type="date" format="shortDate" title="Date"></data-column>
<data-column key="icon" type="icon" srTitle="ADF-DOCUMENT-LIST.LAYOUT.THUMBNAIL" [sortable]="false"></data-column>
<data-column key="name" type="text" title="ADF-DOCUMENT-LIST.LAYOUT.NAME" class="full-width ellipsis-cell" [sortable]="true"></data-column>
<data-column key="created" type="date" format="shortDate" title="ADF-DOCUMENT-LIST.LAYOUT.CREATED"></data-column>
</data-columns>
<loading-content-template>
<ng-template>

View File

@@ -130,17 +130,17 @@ export class TaskAttachmentListComponent implements OnChanges {
onShowRowActionsMenu(event: any) {
let viewAction = {
title: 'View',
title: 'ADF-DOCUMENT-LIST.MENU_ACTIONS.VIEW',
name: 'view'
};
let removeAction = {
title: 'Remove',
title: 'ADF-DOCUMENT-LIST.MENU_ACTIONS.REMOVE',
name: 'remove'
};
let downloadAction = {
title: 'Download',
title: 'ADF-DOCUMENT-LIST.MENU_ACTIONS.DOWNLOAD',
name: 'download'
};

View File

@@ -55,7 +55,7 @@
[disabled]="action.disabled"
(click)="onExecuteRowAction(row, action)">
<mat-icon *ngIf="action.icon">{{ action.icon }}</mat-icon>
<span>{{ action.title }}</span>
<span>{{ action.title | translate }}</span>
</button>
</mat-menu>
</td>
@@ -147,7 +147,7 @@
[disabled]="action.disabled"
(click)="onExecuteRowAction(row, action)">
<mat-icon *ngIf="action.icon">{{ action.icon }}</mat-icon>
<span>{{ action.title }}</span>
<span>{{ action.title | translate }}</span>
</button>
</mat-menu>
</td>

View File

@@ -4,6 +4,7 @@
"HEADER": "This folder is empty"
},
"LAYOUT": {
"CREATED": "Created",
"THUMBNAIL": "Thumbnail",
"NAME": "Name",
"LOCATION": "Location",
@@ -15,6 +16,11 @@
"MODIFIED_BY": "Modified by",
"SHARED_BY": "Shared by",
"LOAD_MORE": "Load more"
},
"MENU_ACTIONS": {
"VIEW": "View",
"REMOVE": "Remove",
"DOWNLOAD": "Download"
}
},
"ALFRESCO_DOCUMENT_LIST": {