From 7cf58a5a5144af90d8a55255dd2e4fc4a338f32e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 11 Apr 2023 14:13:35 +0200 Subject: [PATCH] Bug 33483: Fix link EBSCO package with local agreements Bug 33066 broke that, we need to set 'initialized'. Test plan: Turn on EBSCO provider, search for a package and click "Add new agreement". The modal must open with the list of agreements. --- .../prog/js/vue/components/ERM/AgreementsList.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 90e4f1b6c64..d05d6323b88 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 @@ -314,9 +314,10 @@ export default { }, }, mounted() { + // We this component is mounted from EHoldingsEBSCOPackageAgreements if (!this.building_table) { this.building_table = true - this.getAgreementCount() + this.getAgreementCount().then(() => (this.initialized = true)) } }, components: { flatPickr, Toolbar, KohaTable }, -- 2.25.1