Skip to content
Snippets Groups Projects
Commit ebd5628f authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #12091 TIME 0:10 Add description column in tags administration

parent 2c6702eb
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,11 @@ ...@@ -49,6 +49,11 @@
<mat-cell mat-cell *matCellDef="let element"> <mat-cell mat-cell *matCellDef="let element">
{{element.label}} </mat-cell> {{element.label}} </mat-cell>
</ng-container> </ng-container>
<ng-container matColumnDef="description">
<mat-header-cell *matHeaderCellDef mat-sort-header>{{lang.description}}</mat-header-cell>
<mat-cell mat-cell *matCellDef="let element">
{{element.description}} </mat-cell>
</ng-container>
<ng-container matColumnDef="actions"> <ng-container matColumnDef="actions">
<mat-header-cell *matHeaderCellDef> <mat-header-cell *matHeaderCellDef>
</mat-header-cell> </mat-header-cell>
......
...@@ -28,7 +28,7 @@ export class TagsAdministrationComponent implements OnInit { ...@@ -28,7 +28,7 @@ export class TagsAdministrationComponent implements OnInit {
dataSource: any; dataSource: any;
resultsLength: number = 0; resultsLength: number = 0;
displayedColumns = ['label', 'actions']; displayedColumns = ['label', 'description', 'actions'];
@ViewChild(MatPaginator, { static: false }) paginator: MatPaginator; @ViewChild(MatPaginator, { static: false }) paginator: MatPaginator;
...@@ -38,7 +38,7 @@ export class TagsAdministrationComponent implements OnInit { ...@@ -38,7 +38,7 @@ export class TagsAdministrationComponent implements OnInit {
filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches filterValue = filterValue.toLowerCase(); // MatTableDataSource defaults to lowercase matches
this.dataSource.filter = filterValue; this.dataSource.filter = filterValue;
this.dataSource.filterPredicate = (template: any, filter: string) => { this.dataSource.filterPredicate = (template: any, filter: string) => {
return this.functions.filterUnSensitive(template, filter, ['label']); return this.functions.filterUnSensitive(template, filter, ['label', 'description']);
}; };
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment