From 412b04f6e1747d71407d79dcf323bbdb29f6c6d2 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 10 Feb 2023 11:19:08 -0100 Subject: [PATCH] Bug 32939: Have a generic fetch function for POST and PUT requests in vue modules Rebase to 32806 and prior to 32925. Squash More updates. Ready for review, for now. JD amended patch: * prettier * remove changes to AgreementRelationships.vue and EHoldingsLocalPackageAgreements.vue to have less files to update in upcoming patches --- .../components/ERM/AgreementRelationships.vue | 5 +- .../vue/components/ERM/AgreementsFormAdd.vue | 61 ++++++++----------- .../ERM/AgreementsFormConfirmDelete.vue | 47 +++++++------- .../js/vue/components/ERM/AgreementsList.vue | 5 +- .../js/vue/components/ERM/AgreementsShow.vue | 15 +++-- .../ERM/EHoldingsLocalPackageAgreements.vue | 5 +- .../prog/js/vue/fetch/erm-api-client.js | 46 ++++++++++++++ .../intranet-tmpl/prog/js/vue/fetch/erm.js | 16 +---- .../prog/js/vue/fetch/http-client.js | 59 ++++++++++++++++++ 9 files changed, 174 insertions(+), 85 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/js/vue/fetch/erm-api-client.js create mode 100644 koha-tmpl/intranet-tmpl/prog/js/vue/fetch/http-client.js diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementRelationships.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementRelationships.vue index 17bd31b7845..e24eb5d0303 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementRelationships.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementRelationships.vue @@ -85,7 +85,7 @@