ihsn / nada

National Data Archive (NADA) is an open source data cataloging system that serves as a portal for researchers to browse, search, compare, apply for access, and download relevant census or survey information. It was originally developed to support the establishment of national survey data archives.
http://nada.ihsn.org
MIT License
38 stars 10 forks source link

Fix datadeposit review send by email #106

Open Greg735 opened 5 months ago

Greg735 commented 5 months ago

Hello,

A small improvement on the "Review and submit" page in the "Data deposit" section. Currently, when there is an error in the "share_email" field, the message displayed is not very clear. This fix allows you to have a detailed message with the correct translations. I've also added a check on the field before the POST request to see whether it's empty or not.

Error message before 2024-03-26 13_17_41-Data Deposit - Review and Submit Error message after 2024-03-26 13_26_23-Window

An alert message is also shown to the user if the email has been send successfully. Currently there's no notification if the email has been send.