From 5163af032eac5af705920622c26247d744820187 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. --- .../components/ERM/AgreementRelationships.vue | 5 +- .../vue/components/ERM/AgreementsFormAdd.vue | 56 +++++++---------- .../ERM/AgreementsFormConfirmDelete.vue | 40 +++++-------- .../js/vue/components/ERM/AgreementsList.vue | 5 +- .../js/vue/components/ERM/AgreementsShow.vue | 12 ++-- .../ERM/EHoldingsLocalPackageAgreements.vue | 5 +- .../prog/js/vue/fetch/erm-api-client.js | 52 ++++++++++++++++ .../intranet-tmpl/prog/js/vue/fetch/erm.js | 38 +----------- .../prog/js/vue/fetch/http-client.js | 60 +++++++++++++++++++ 9 files changed, 168 insertions(+), 105 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 17bd31b784..a95886d987 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 @@