From d30ba55cfc37e84f09d07cdadb5c2e6a987aaf03 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 Content-Type: text/plain; charset=utf-8 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 Signed-off-by: Laurence Rault Signed-off-by: Marcel de Rooy --- .../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 79c268c0f1..3868b5b911 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.30.2