From bc9c647bab728e6956de91374ac9ab2df84a869f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 Feb 2023 08:48:48 +0100 Subject: [PATCH] Bug 32807: Fetch count instead of all entries for agreements and licenses To list agreements and licenses we are retrieving the whole list to simply know if at least one exists (and display the table that will fetch the X first elements to display). We should call count instead. Test plan: List agreements and licenses. If none exists, the table is not displayed but a "There are no... defined" message instead. If at least one exists the table must be there --- .../js/vue/components/ERM/AgreementsList.vue | 20 +++++++++--------- .../ERM/EHoldingsLocalPackagesList.vue | 2 +- .../ERM/EHoldingsLocalTitlesList.vue | 2 +- .../js/vue/components/ERM/LicensesList.vue | 16 +++++++------- .../prog/js/vue/fetch/erm-api-client.js | 21 ++++++++++++++++++- 5 files changed, 40 insertions(+), 21 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue index 251c4c892a4..2d1a0c91494 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue @@ -1,8 +1,8 @@