1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 01:39:37 +02:00

Fix table sort

This commit is contained in:
Chocobozzz 2025-07-24 16:47:34 +02:00
parent 2612112c63
commit 445866967f
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -74,11 +74,11 @@
@for (column of columns; track column.id) { @for (column of columns; track column.id) {
@if (isColumnDisplayed(column.id)) { @if (isColumnDisplayed(column.id)) {
@if (column.sortable) { @if (column.sortable) {
<th scope="col" [ngbTooltip]="sortTooltip" container="body" [pSortableColumn]="getUntypedColumnId(column)" [ngClass]="column.class"> <th scope="col" [ngbTooltip]="sortTooltip" container="body" [pSortableColumn]="column.sortKey" [ngClass]="column.class">
{{ column.label }} {{ column.label }}
<small *ngIf="column.labelSmall">{{ column.labelSmall }}</small> <small *ngIf="column.labelSmall">{{ column.labelSmall }}</small>
<p-sortIcon [field]="getUntypedColumnId(column)"></p-sortIcon> <p-sortIcon [field]="column.sortKey"></p-sortIcon>
</th> </th>
} @else { } @else {
<th scope="col" [ngClass]="column.class"> <th scope="col" [ngClass]="column.class">