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:
parent
637ac75f95
commit
a68a4a8472
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue