ECLK / IncidentManagement

Incident Management System for EC
Apache License 2.0
12 stars 45 forks source link

disable submit button upon 1st press until request is complete #556

Closed MrClemRkz closed 4 years ago

MrClemRkz commented 4 years ago

Describe the bug disable submit button upon 1st press until request is complete. user tends to press submit button serveral times, when there's bit of a lag, which resutls multiple refId or duplicate refIds.

To Reproduce (this is more likely to take place on the live server, under slow internet connection or internet connection lag. Steps to reproduce the behavior:

  1. Go to 'create' and fill the form
  2. Click on 'submit'
  3. Go to 'home'
  4. Look for multiple refId for same data entered or duplicate refIds.

Expected behavior Set a loading on submit button upon first click until the request is complete.