mirror of
				https://github.com/Alfresco/alfresco-ng2-components.git
				synced 2025-10-29 15:21:39 +00:00 
			
		
		
		
	AAE-25571 Add column title to widget (#10620)
* AAE-30141 Fix broken amount field * AAE-30141 add title column
This commit is contained in:
		| @@ -53,6 +53,7 @@ | ||||
|       "DATA_TABLE_LOAD_FAILED": "There was a problem loading table elements. Please contact administrator.", | ||||
|       "EXTERNAL_PROPERTY_LOAD_FAILED": "There was a problem loading external property. Please contact administrator.", | ||||
|       "FILE_NAME": "File Name", | ||||
|       "TITLE": "Title", | ||||
|       "NO_FILE_ATTACHED": "No file attached", | ||||
|       "VALIDATOR": { | ||||
|         "INVALID_NUMBER": "Use a different number format", | ||||
|   | ||||
| @@ -90,7 +90,7 @@ export class AttachFileCloudWidgetComponent extends UploadCloudWidgetComponent i | ||||
|         this._nodesApi = this._nodesApi ?? new NodesApi(this.apiService.getInstance()); | ||||
|         return this._nodesApi; | ||||
|     } | ||||
|     displayedColumns = ['icon', 'fileName', 'action']; | ||||
|     displayedColumns = ['icon', 'fileName', 'title', 'action']; | ||||
|  | ||||
|     constructor(formService: FormService) { | ||||
|         super(formService); | ||||
|   | ||||
| @@ -29,6 +29,11 @@ | ||||
|             </td> | ||||
|         </ng-container> | ||||
|  | ||||
|         <ng-container matColumnDef="title"> | ||||
|             <th mat-header-cell *matHeaderCellDef>{{ 'FORM.FIELD.TITLE' | translate }}</th> | ||||
|             <td mat-cell class="adf-file-properties-table-cell" *matCellDef="let element">{{ element.title }}</td> | ||||
|         </ng-container> | ||||
|  | ||||
|         <ng-container *ngFor="let prop of field?.params?.displayableCMProperties" [matColumnDef]="prop.name"> | ||||
|             <th mat-header-cell *matHeaderCellDef>{{prop.title ? prop.title : prop.name | titlecase }}</th> | ||||
|             <td mat-cell class="adf-file-properties-table-cell" *matCellDef="let row"> | ||||
|   | ||||
| @@ -62,7 +62,7 @@ describe('FilePropertiesTableCloudComponent', () => { | ||||
|  | ||||
|         widget.hasFile = true; | ||||
|  | ||||
|         widget.displayedColumns = ['icon', 'fileName']; | ||||
|         widget.displayedColumns = ['icon', 'fileName', 'title']; | ||||
|  | ||||
|         fixture.detectChanges(); | ||||
|     }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user