mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-18 20:46:49 +01:00
Enhancement: custom field sorting (#8494)
This commit is contained in:
parent
e44cfef662
commit
4e3d25c714
10 changed files with 522 additions and 25 deletions
|
|
@ -262,9 +262,14 @@
|
|||
Shared
|
||||
</th>
|
||||
}
|
||||
@for (field of activeDisplayCustomFields; track field) {
|
||||
<th>
|
||||
{{getDisplayCustomFieldTitle(field)}}
|
||||
@for (field_id of activeDisplayCustomFields; track field_id) {
|
||||
<th class="cursor-pointer"
|
||||
pngxSortable="{{field_id}}"
|
||||
title="Sort by {{getDisplayCustomFieldTitle(field_id)}}" i18n-title
|
||||
[currentSortField]="list.sortField"
|
||||
[currentSortReverse]="list.sortReverse"
|
||||
(sort)="onSort($event)">
|
||||
{{getDisplayCustomFieldTitle(field_id)}}
|
||||
</th>
|
||||
}
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue