shesha-io / shesha-framework

An open-source Low-Code development framework for .NET developers. Create .NET based business applications with 80% less code.
https://shesha.io
Apache License 2.0
368 stars 66 forks source link

Inconsistent implementation of disabling the custom button compared to the default button after it is clicked #2118

Open hlayisanimazuze opened 1 week ago

hlayisanimazuze commented 1 week ago

If a script method is used, when the action button is clicked, it gets disabled and shows that is loading, while the default buttons they grey out and shows a loaded. There's inconsistencies between the custom and default buttons

Custom Done button rendering script on Wizard: https://function-adminportal-test.shesha.dev/shesha/forms-designer?id=8f56e2b8-24bc-4cf7-acdf-9de3f94f7e21

Steps to reproduce the behavior:

  1. Navigate to "Dynamic Test Module".
  2. Open the form configurations.
  3. Access the button configuration within Panel 02.
  4. Set the Action Configuration to "Common >> Show dialog".
  5. Change the button type to "Custom Buttons".
  6. Click "Customize Button Group".
  7. Add a button.
  8. Set the Action Configuration to "Common >> Execute Script (Do not handle success)".
  9. Save and render the configuration.
  10. Switch your network connection to 3G.
  11. Click the add button and add a payment.
  12. Actual Results: The button is disabled but not grey out like how the default buttons are

Expected behavior The implementation should be consistent throughout the buttons

hlayisanimazuze commented 1 week ago

Related Item: https://github.com/shesha-io/shesha-framework/issues/1932