AAE-25571 Add column title to widget (#10620)

* AAE-30141 Fix broken amount field

* AAE-30141 add title column
This commit is contained in:
Tomasz Nastaly 2025-02-06 16:18:22 +01:00 committed by GitHub
parent e62c0587b6
commit dcb7e4067c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 2 deletions

View File

@ -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",

View File

@ -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);

View File

@ -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">

View File

@ -62,7 +62,7 @@ describe('FilePropertiesTableCloudComponent', () => {
widget.hasFile = true;
widget.displayedColumns = ['icon', 'fileName'];
widget.displayedColumns = ['icon', 'fileName', 'title'];
fixture.detectChanges();
});