Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] - Disable multiclick on refund #348

Open
dan-payplug opened this issue Feb 22, 2022 · 1 comment
Open

[Bug] - Disable multiclick on refund #348

dan-payplug opened this issue Feb 22, 2022 · 1 comment
Labels
Bug Confirmed bugs or bugfixes.

Comments

@dan-payplug
Copy link

SyliusRefundPlugin version affected: All

Description
Prevent multi-click for refund button

Steps to reproduce

  • Sign in to BO
  • Go on order detail paid successfully
  • Refund the customer for the order
  • Select the items to refund
  • Multi click on Refund button quickly

Result observed
refund_ko

  • There are several error/success messages regarding the number of click on the Refund button

Possible Solution

  • The button is disabled after hitting the first click to prevent multi error/success messages
@dan-payplug dan-payplug added the Bug Confirmed bugs or bugfixes. label Feb 22, 2022
@GSadee
Copy link
Member

GSadee commented Feb 25, 2022

Hi @dan-payplug, thank you for reporting the issue, indeed it should be secured, probably not only in this place. Would you like to open a PR with such a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bugs or bugfixes.
Projects
None yet
Development

No branches or pull requests

2 participants