You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to implement an admin login in the long term to allow quick EDIT and DELETE functions for listings. (currently we are planning to lock the edit access and instead set up email requests for edit and delete) We have some considerations:
Security with storing email and password
Design considerations, we are thinking if you are logged in as admin the edit/delete button will have a different function, deleting directly or bringing directly to edit page. Suggestions welcome!
The text was updated successfully, but these errors were encountered:
Hi Wenrui, sorry for the late reply :) When edits and deletes are made, an email is sent to [email protected] with a request so that we can manually make the changes. ListForm.js is the main component through which Edits are made while DeleteModel.js is the component where Deletes are made.
When the edit button is pressed, it triggers the Modal in Popup.js, which in turn holds ListForm.js. In ListForm.js, when an edit is made and submitted, it triggers the function handleSubmit (lines 420 to 447), in turn triggering handleData (lines 458 to 519). In handleData, an email is sent using the helper function sendEmailToUpdateListing from helpers.js (in the Helpers folder). Once submitted, it will trigger showReviewEditMessage in Info.js which will show an info dialog to the user for 10 seconds (lines 742 to 744).
When the delete button is pressed, it triggers the DeleteModal in Popup.js, which will ask for the user's confirmation in DeleteModal.js. When confirmed, handleSubmitDelete is run which runs sendDeleteEmail which in turns runs the helper function sendEmailToUpdateListing. This again sends an email to us to notify us of the changes. Again, in Info.js, the showReviewDeleteMessage function is triggered which shows the delete info dialog to the user for 10 seconds (lines 748 to 749).
Hope this helps! Let us know if you have any more questions :)
Stretch goal:
We would like to implement an admin login in the long term to allow quick EDIT and DELETE functions for listings. (currently we are planning to lock the edit access and instead set up email requests for edit and delete) We have some considerations:
The text was updated successfully, but these errors were encountered: