sderacy / gooncard

The Goon Squad's Goon Card Project for CSC 355 ('22)
http://gooncard.hpc.tcnj.edu:3000/
MIT License
6 stars 2 forks source link

Use a Save Changes Button for Accounts page instead of saving on Update #93

Closed sderacy closed 2 years ago

sderacy commented 2 years ago

Currently, if you change a field on the profile page it will automatically save the information. It would be nicer to have a button that sends all of the data at once instead of a couple little changes.

paytonshaltis commented 2 years ago

Need to create a few action arrays:

The add, edit, and delete arrays can then be sent to the server. In any order, the new entries should by added, edited entries should be updated, and deleted entries should be removed from the database. Actions on the client side should ensure that there is no duplication between these arrays.

Any error should return false. Posting should also refresh the page to show the modified results, and display a success message.