From 4d13480e01651b793c993395b0fcc18f34b4dcf5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 9 Jun 2023 17:00:26 +0200 Subject: [PATCH] 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/ --- .../prog/js/vue/components/Preservation/TrainsList.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsList.vue index 79c268c0f1d..3868b5b9114 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Preservation/TrainsList.vue @@ -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: { -- 2.25.1