mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +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:
parent
e62c0587b6
commit
dcb7e4067c
@ -53,6 +53,7 @@
|
|||||||
"DATA_TABLE_LOAD_FAILED": "There was a problem loading table elements. Please contact administrator.",
|
"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.",
|
"EXTERNAL_PROPERTY_LOAD_FAILED": "There was a problem loading external property. Please contact administrator.",
|
||||||
"FILE_NAME": "File Name",
|
"FILE_NAME": "File Name",
|
||||||
|
"TITLE": "Title",
|
||||||
"NO_FILE_ATTACHED": "No file attached",
|
"NO_FILE_ATTACHED": "No file attached",
|
||||||
"VALIDATOR": {
|
"VALIDATOR": {
|
||||||
"INVALID_NUMBER": "Use a different number format",
|
"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());
|
this._nodesApi = this._nodesApi ?? new NodesApi(this.apiService.getInstance());
|
||||||
return this._nodesApi;
|
return this._nodesApi;
|
||||||
}
|
}
|
||||||
displayedColumns = ['icon', 'fileName', 'action'];
|
displayedColumns = ['icon', 'fileName', 'title', 'action'];
|
||||||
|
|
||||||
constructor(formService: FormService) {
|
constructor(formService: FormService) {
|
||||||
super(formService);
|
super(formService);
|
||||||
|
@ -29,6 +29,11 @@
|
|||||||
</td>
|
</td>
|
||||||
</ng-container>
|
</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">
|
<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>
|
<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">
|
<td mat-cell class="adf-file-properties-table-cell" *matCellDef="let row">
|
||||||
|
@ -62,7 +62,7 @@ describe('FilePropertiesTableCloudComponent', () => {
|
|||||||
|
|
||||||
widget.hasFile = true;
|
widget.hasFile = true;
|
||||||
|
|
||||||
widget.displayedColumns = ['icon', 'fileName'];
|
widget.displayedColumns = ['icon', 'fileName', 'title'];
|
||||||
|
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user