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.

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit c0b189ff0a)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2023-04-11 14:13:35 +02:00 committed by Martin Renvoize
parent 9d934707dd
commit 14185b7bb1
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -318,9 +318,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 },