RefundPlugin icon indicating copy to clipboard operation
RefundPlugin copied to clipboard

[Bug] - Disable multiclick on refund

Open dan-payplug opened this issue 3 years ago • 1 comments

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 avatar Feb 22 '22 11:02 dan-payplug

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?

GSadee avatar Feb 25 '22 06:02 GSadee