Bug 30708: Add a default sort for trains

We want opened, closed, sent, then finally received trains.
But ordering by desc for opened, and asc for the others.
Which means the last opened will be first, but the closed, send and received will display oldest first.

Sponsored-by: BULAC - http://www.bulac.fr/
Signed-off-by: BULAC - http://www.bulac.fr/
Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov>
Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-06-09 17:00:26 +02:00 committed by Tomas Cohen Arazi
parent 637ac75f95
commit a68a4a8472
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 8 additions and 0 deletions

View File

@ -86,6 +86,14 @@ export default {
initialized: false,
tableOptions: {
columns: this.getTableColumns(),
options: {
order: [
[1, "desc"],
[2, "asc"],
[3, "asc"],
[4, "asc"],
],
},
url: this.table_url,
add_filters: true,
actions: {