From 95a2333a97bfea83e47c2cc2d52ca74269ce10e4 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 Signed-off-by: Matt Blenkinsop Signed-off-by: Kyle M Hall --- .../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 e14b1142498..51e63a9eb0a 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 @@