mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Fix table sort
This commit is contained in:
parent
2612112c63
commit
445866967f
1 changed files with 2 additions and 2 deletions
|
@ -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">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue