jshoyos / soen390-team01

MIT License
0 stars 0 forks source link

Edit user modal restricted to a single use #58

Closed t-andrews closed 3 years ago

t-andrews commented 3 years ago

Describe the bug In the User Management module, updating a user once breaks the Edit modal. After the modal is closed on the first edit, clicking on the Edit button again does not make the modal visible again, preventing the module user from modifying the entry multiple times.

To Reproduce Steps to reproduce the behavior:

  1. Start the application
  2. Sign in
  3. Go to the User Management tab
  4. If not there is no user in the table, use the Add User form
  5. Click on the Edit button for a user in the table
  6. Modify a field's value in the modal and click on Update
  7. You can now no longer bring back the Edit modal

Expected behavior After the first usage of the Edit modal, the module's user should be able to re-use it how many times they want on the same table entry.

Screenshots 5) Clicking on Edit the first time image.png 6) Modifying a field's value image.png 7) Clicking on Edit a second time (the modal doesn't show up anymore) image.png

Additional context Introduced in #56