From d269e01cebb61a1a8a7114525962df2082f2a140 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 17 May 2023 16:28:23 +0000 Subject: [PATCH] Bug 33606: Fix settings Content-Type: text/plain; charset=utf-8 Signed-off-by: Pedro Amorim Signed-off-by: Marcel de Rooy --- .../js/vue/components/ERM/EHoldingsEBSCOPackagesList.vue | 2 +- .../js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue | 2 +- koha-tmpl/intranet-tmpl/prog/js/vue/stores/erm.js | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOPackagesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOPackagesList.vue index 2a5822371d..9cd04c4778 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOPackagesList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOPackagesList.vue @@ -168,7 +168,7 @@ export default { this.show_table = true this.local_count_packages = null - if (this.config.ERMProviders.includes("local")) { + if (this.config.settings.ERMProviders.includes("local")) { const client = APIClient.erm const query = this.filters ? { diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue index a3405d50fe..a0288652b9 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOTitlesList.vue @@ -179,7 +179,7 @@ export default { "/api/v1/erm/eholdings/ebsco/titles" ) } - if (this.config.ERMProviders.includes("local")) { + if (this.config.settings.ERMProviders.includes("local")) { const client = APIClient.erm const q = this.filters diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/erm.js b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/erm.js index 0b759b8741..1ae8eccdd1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/erm.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/stores/erm.js @@ -2,9 +2,11 @@ import { defineStore } from "pinia"; export const useERMStore = defineStore("erm", { state: () => ({ - sysprefs: { - ERMModule: false, - ERMProviders: [], + config: { + settings: { + ERMModule: false, + ERMProviders: [], + } }, }), }); -- 2.30.2