From 42e351ea81ef840b5c5624d1306c4655c0fe39a3 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 27 Apr 2023 08:54:25 +0200 Subject: [PATCH] Bug 32474: Do not fetch all the licenses Otherwise we are loosing all the point of the pagination! --- .../prog/js/vue/components/ERM/AgreementLicenses.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue index a244ab14413..cab8cb1927a 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue @@ -83,7 +83,7 @@ - {{ $__("Add new license") }} {{ $__("There are no licenses created yet") }} @@ -98,7 +98,7 @@ export default { name: "AgreementLicenses", data() { return { - licenses: [], + license_count: null, } }, props: { @@ -108,9 +108,9 @@ export default { }, beforeCreate() { const client = APIClient.erm - client.licenses.getAll().then( - licenses => { - this.licenses = licenses + client.licenses.count().then( + count => { + this.license_count = count this.initialized = true }, error => {} -- 2.25.1