]> git.koha-community.org Git - koha.git/commit
Bug 32925: Display loading info when a form is submitted
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 9 Feb 2023 13:56:43 +0000 (14:56 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 27 Feb 2023 14:14:10 +0000 (11:14 -0300)
commit35dd04e9cb1d8b881b75504a55a253c5cd74f3cd
treec970cb393258cfb105f512e8be2fdd36be7149f2
parent2540ba19cb26a9d4f288086213891fdfe7561ab5
Bug 32925: Display loading info when a form is submitted

With this new ButtonSubmit component all our submit buttons will look
and behave identically.
Here we need a "submitting" information to be displayed, and the form to
be "deactivated".

This patch is a POC and use the new component on the add agreement and
delete agreement forms

Test plan:
It's easier to test if you add a sleep in the relevant place
(Koha/REST/V1/ERM/Agreements.pm for list and add/update)
Confirm that you see a "Submitting..." in the middle of the screen

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/vue/components/ButtonSubmit.vue [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormAdd.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsFormConfirmDelete.vue