Bug 33973: Restore sorting on Vue tables

Regression from the KohaTable Vue component added by bug 33066.

_dt_default_ajax expects options.columns to contain the columns.

Test plan:
Add some agreements, go the the agreement list view and confirm that you
can now sort the agreements using the header columns.

Note that the CSS is not correct yet. My understanding is that the
DataTable Vue component keep the 'sorting' class on the th which display
the grey up/down icon over the blue icon which indicate the current sort
column.

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-06-09 16:36:43 +02:00 committed by Tomas Cohen Arazi
parent a9389b60d3
commit 7990f3e741
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -44,7 +44,7 @@ export default {
ajax: {
url: typeof this.url === "function" ? this.url() : this.url,
..._dt_default_ajax({
options: this.options,
options: { ...this.options, columns: this.columns },
default_filters: this.default_filters,
}),
},